Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If version is --, consider it as an error as upstream version is not …

…available.
  • Loading branch information...
commit 82c83707166c427019e10522dbb8d252d39d25a5 1 parent 3652ad1
@nbprashanth authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 download-upstream-versions
View
10 download-upstream-versions
@@ -1196,6 +1196,8 @@ def main(args):
while not result.empty():
(cat, modulename, version, location) = result.get()
+ if version=='--':
+ version=None
if version and location:
for record in records:
@@ -1213,7 +1215,7 @@ def main(args):
c.perform()
print buf.getvalue()
buf.close()
- #out.write('%s:%s:%s:%s\n' % (cat, modulename, version, location))
+ out.write('%s:%s:%s:%s\n' % (cat, modulename, version, location))
elif version:
for record in records:
if modulename == record.getElementsByTagName('pkgName')[0].toxml().replace('<pkgName>','').replace('</pkgName>',''):
@@ -1230,7 +1232,7 @@ def main(args):
c.perform()
print buf.getvalue()
buf.close()
- #out.write('%s:%s:%s:\n' % (cat, modulename, version))
+ out.write('%s:%s:%s:\n' % (cat, modulename, version))
elif location:
for record in records:
if modulename == record.getElementsByTagName('pkgName')[0].toxml().replace('<pkgName>','').replace('</pkgName>',''):
@@ -1247,7 +1249,7 @@ def main(args):
c.perform()
print buf.getvalue()
buf.close()
- #out.write('%s:%s::%s\n' % (cat, modulename, location))
+ out.write('%s:%s::%s\n' % (cat, modulename, location))
else:
for record in records:
if modulename == record.getElementsByTagName('pkgName')[0].toxml().replace('<pkgName>','').replace('</pkgName>',''):
@@ -1264,7 +1266,7 @@ def main(args):
c.perform()
print buf.getvalue()
buf.close()
- #out.write('%s:%s::\n' % (cat, modulename))
+ out.write('%s:%s::\n' % (cat, modulename))
result.task_done()
Please sign in to comment.
Something went wrong with that request. Please try again.