From 25cd343a65fb4ff460e98aeb704f85b284dfc3a9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 24 Jan 2013 10:29:41 -0800 Subject: _new_backup_path: fix TypeError, bug #453892 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3-1-g7c22