[copr] master: when you want to have more than one item in a list, good idea to separate them with commas (ca05d75)

skvidal at fedoraproject.org skvidal at fedoraproject.org
Fri Feb 1 04:21:24 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit ca05d758b76cd899afee7675afd935eba4717702
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Thu Jan 31 23:20:23 2013 -0500

    when you want to have more than one item in a list,
    good idea to separate them with commas


>---------------------------------------------------------------

 backend/mockremote.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/backend/mockremote.py b/backend/mockremote.py
index 94cb56e..308c21a 100755
--- a/backend/mockremote.py
+++ b/backend/mockremote.py
@@ -511,7 +511,7 @@ class MockRemote(object):
                     self.callback.log("Success building %s" % os.path.basename(pkg))
                     built_pkgs.append(pkg)
                     # createrepo with the new pkgs
-                    for d in [self.destdir + self.destdir + '/' + self.chroot]:
+                    for d in [self.destdir, self.destdir + '/' + self.chroot]:
                         rc, out, err = createrepo(d)
                         if err.strip():
                             self.callback.error("Error making local repo: %s" % d)



More information about the copr-devel mailing list