From: Zac Medico Date: Thu, 24 Jan 2013 18:29:41 +0000 (-0800) Subject: _new_backup_path: fix TypeError, bug #453892 X-Git-Tag: v2.2.0_alpha161~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25cd343a65fb4ff460e98aeb704f85b284dfc3a9;p=portage.git _new_backup_path: fix TypeError, bug #453892 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 20a114bda..bbcf61c9f 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: