Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 02b8fa8307d8af4900183f8a3f0ec8dcb046e8de
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Thu Aug 21 18:01:38 2014 +0200
[backend] [RHBZ:1128606 ] For rhel-5 builds pass "--checksum md5" to
`createrepo_c` command.
---------------------------------------------------------------
backend/backend/mockremote.py | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/backend/backend/mockremote.py b/backend/backend/mockremote.py
index ae21aeb..bec58c2 100755
--- a/backend/backend/mockremote.py
+++ b/backend/backend/mockremote.py
@@ -64,21 +64,14 @@ class SortedOptParser(optparse.OptionParser):
def createrepo(path, lock=None):
+ comm = ['/usr/bin/createrepo_c', '--database',
'--ignore-lock']
+ if os.path.exists(path + '/repodata/repomd.xml'):
+ comm.append("--update")
if "epel-5" in path:
# this is because rhel-5 doesn't know sha256
- if os.path.exists(path + '/repodata/repomd.xml'):
- comm = ['/usr/bin/createrepo_c', '--database',
'--ignore-lock',
- '--update', '-s', 'sha', path]
- else:
- comm = ['/usr/bin/createrepo_c', '--database',
'--ignore-lock',
- '-s', 'sha', path]
- else:
- if os.path.exists(path + '/repodata/repomd.xml'):
- comm = ['/usr/bin/createrepo_c', '--database',
'--ignore-lock',
- '--update', path]
- else:
- comm = ['/usr/bin/createrepo_c', '--database',
'--ignore-lock',
- path]
+ comm.extend(['-s', 'sha', '--checksum', 'md5'])
+ comm.append(path)
+
if lock:
lock.acquire()
cmd = subprocess.Popen(comm,