aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-02-05 20:52:24 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-02-05 20:52:24 +0000
commit49898e3e1977b32f26e8045aafb5e24afdccb167 (patch)
tree7364db91dcb4dce06fe5d633a2a39ab1ff204c01 /RepSys
parent936d5717d1b4afc17b04afbe02ad7aff8770722d (diff)
downloadmgarepo-49898e3e1977b32f26e8045aafb5e24afdccb167.tar
mgarepo-49898e3e1977b32f26e8045aafb5e24afdccb167.tar.gz
mgarepo-49898e3e1977b32f26e8045aafb5e24afdccb167.tar.bz2
mgarepo-49898e3e1977b32f26e8045aafb5e24afdccb167.tar.xz
mgarepo-49898e3e1977b32f26e8045aafb5e24afdccb167.zip
Changed get_submit_info to use svn.info2 and properly handle non-versioned
files
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/rpmutil.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 7481b72..45c9758 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -511,9 +511,13 @@ def get_submit_info(path):
files = []
files.extend(glob.glob("%s/*" % specsdir))
files.extend(glob.glob("%s/*" % sourcesdir))
- for line in svn.info(" ".join(files)):
- if line.startswith("Last Changed Rev: "):
- rev = int(line.split(":")[1])
+ for file in files:
+ info = svn.info2(file)
+ if info is None:
+ continue
+ rawrev = info.get("Last Changed Rev")
+ if rawrev:
+ rev = int(rawrev)
if rev > max:
max = rev
if max == -1: