(#1238875)
Backup dir currently use config name , and we may have various config names for
the same root name , so it is better use root name which is always the same.

Signed-off-by: Sérgio M. Basto <[email protected]>
---
 py/mockbuild/backend.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/py/mockbuild/backend.py b/py/mockbuild/backend.py
index ef3eedd..c83edc5 100644
--- a/py/mockbuild/backend.py
+++ b/py/mockbuild/backend.py
@@ -57,7 +57,7 @@ class Commands(object):
         srcdir = os.path.join(self.buildroot.basedir, "result")
         if not os.path.exists(srcdir):
             return
-        dstdir = os.path.join(self.backup_base_dir, self.config_name)
+        dstdir = os.path.join(self.backup_base_dir, self.config['root'])
         util.mkdirIfAbsent(dstdir)
         rpms = glob.glob(os.path.join(srcdir, "*rpm"))
         if len(rpms) == 0:
-- 
2.5.5
--
buildsys mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to