aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-01-24 18:29:41 (GMT)
committerZac Medico <zmedico@gentoo.org>2013-01-24 18:29:41 (GMT)
commit25cd343a65fb4ff460e98aeb704f85b284dfc3a9 (patch)
tree99b6a8d4f314cdabe4f7a50c43ccf70385360b5e
parentPackage._init_use: always sync _metadata (diff)
downloadportage-25cd343a65fb4ff460e98aeb704f85b284dfc3a9.zip
portage-25cd343a65fb4ff460e98aeb704f85b284dfc3a9.tar.gz
portage-25cd343a65fb4ff460e98aeb704f85b284dfc3a9.tar.bz2
_new_backup_path: fix TypeError, bug #453892
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 20a114b..bbcf61c 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -4222,7 +4222,7 @@ class dblink(object):
x = -1
while True:
x += 1
- backup_p = p + '.backup.' + str(x).rjust(4, '0')
+ backup_p = '%s.backup.%04d' % (p, x)
try:
os.lstat(backup_p)
except OSError: