aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/rpmutil.py')
-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: