[copr] master: make sure createrepo knows to make databases by default (46dccee)

skvidal at fedorahosted.org skvidal at fedorahosted.org
Wed Jan 9 20:50:30 UTC 2013


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

On branch  : master

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

commit 46dcceee91eff9bfecdab67cea90bc1675279d27
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Jan 9 15:48:30 2013 -0500

    make sure createrepo knows to make databases by default


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

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

diff --git a/backend/mockremote.py b/backend/mockremote.py
index 2c641c8..29c3704 100755
--- a/backend/mockremote.py
+++ b/backend/mockremote.py
@@ -57,9 +57,9 @@ class SortedOptParser(optparse.OptionParser):
 
 def createrepo(path):
     if os.path.exists(path + '/repodata/repomd.xml'):
-        comm = ['/usr/bin/createrepo', '--update', path]
+        comm = ['/usr/bin/createrepo', '--database', '--update', path]
     else:
-        comm = ['/usr/bin/createrepo', path]
+        comm = ['/usr/bin/createrepo' '--database', path]
     cmd = subprocess.Popen(comm,
              stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     out, err = cmd.communicate()



More information about the copr-devel mailing list