mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
syncpackage: Show a error message instead of raising an error if Ubuntu contains a newer version.
This commit is contained in:
parent
b403dedbfb
commit
7241b30c16
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -33,8 +33,10 @@ ubuntu-dev-tools (0.105) UNRELEASED; urgency=low
|
||||
* syncpackage:
|
||||
- Don't crash if environment variables aren't set (LP: #665202).
|
||||
- Don't add quotation marks to changelog entries (LP: #668805).
|
||||
- Show a error message instead of raising an error if Ubuntu contains a
|
||||
newer version.
|
||||
|
||||
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 30 Oct 2010 19:56:33 +0200
|
||||
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 30 Oct 2010 20:10:39 +0200
|
||||
|
||||
ubuntu-dev-tools (0.104) experimental; urgency=low
|
||||
|
||||
|
@ -216,8 +216,10 @@ def sync_dsc(script_name, dscurl, debian_dist, release, name, email, bugs,
|
||||
|
||||
# No need to continue if version is not greater than current one
|
||||
if new_ver <= ubuntu_ver:
|
||||
raise Exception('%s version %s is not greater than already available '
|
||||
'%s' % (srcpkg, new_ver, ubuntu_ver))
|
||||
parameters = (script_name, srcpkg, new_ver, ubuntu_ver)
|
||||
print >> sys.stderr, ("%s: Error: %s version %s is not greater than "
|
||||
"already available %s") % parameters
|
||||
sys.exit(1)
|
||||
if verbose:
|
||||
print '%s: D: Source %s: current version %s, new version %s' % \
|
||||
(script_name, srcpkg, ubuntu_ver, new_ver)
|
||||
|
Loading…
x
Reference in New Issue
Block a user