1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 01:26:23 +01:00

small fix for do_checkout()

This commit is contained in:
Marcus Hüwe 2007-07-07 17:13:37 +00:00
parent 44dd39c0c2
commit 44b1f5621c
2 changed files with 2 additions and 6 deletions

View File

@ -543,7 +543,7 @@ class Osc(cmdln.Cmdln):
rev, dummy = parseRevisionOption(opts.revision)
if not checkRevision(project, package, rev):
if rev and not checkRevision(project, package, rev):
print >>sys.stderr, 'Revision \'%s\' does not exist' % rev
sys.exit(1)

View File

@ -1645,9 +1645,5 @@ def checkRevision(prj, pac, revision):
return False
else:
return True
except ValueError, ee:
print >>sys.stderr, ee
return False
except TypeError, ee:
print >>sys.stderr, ee
except (ValueError, TypeError):
return False