summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-25 07:08:24 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-25 07:08:24 +0000
commit28f70d0feddd9ff95c30af10694694324a6230ce (patch)
tree31a647d93d11535937bf60bfb3b81c6c5df3ea2e /bin
parentRemove ugly code from __len__, since defining __bool__ fixes the same (diff)
downloadportage-idfetch-28f70d0feddd9ff95c30af10694694324a6230ce.tar.gz
portage-idfetch-28f70d0feddd9ff95c30af10694694324a6230ce.tar.bz2
portage-idfetch-28f70d0feddd9ff95c30af10694694324a6230ce.zip
Fix formatting of sizes with Python 3.
svn path=/main/trunk/; revision=14429
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index faed9a2b..8fd7a60c 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1127,7 +1127,7 @@ for x in scanlist:
# current policy is no files over 20k, this is the check.
elif mystat.st_size > 20480:
stats["file.size"] += 1
- fails["file.size"].append("("+ str(mystat.st_size/1024) + "K) "+x+"/files/"+y)
+ fails["file.size"].append("("+ str(mystat.st_size//1024) + "K) "+x+"/files/"+y)
m = disallowed_filename_chars_re.search(
os.path.basename(y.rstrip(os.sep)))