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:
parent
44dd39c0c2
commit
44b1f5621c
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user