mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-13 18:01:28 +00:00
It appears we need to use checkUpload instead of isSourceUploadAllowed
This commit is contained in:
parent
1e12c1fb7a
commit
37e6c07dd8
7
ack-sync
7
ack-sync
@ -197,7 +197,12 @@ def main(bug_numbers, all_package, all_version, all_section, update,
|
|||||||
else:
|
else:
|
||||||
version = get_version(bug.title)
|
version = get_version(bug.title)
|
||||||
|
|
||||||
if not series.main_archive.isSourceUploadAllowed(person=launchpad.me,
|
src_pkg = series.getSourcePackage(name=package)
|
||||||
|
if src_pkg is None:
|
||||||
|
print "%s is NEW in %s." % (package, dist)
|
||||||
|
if src_pkg is not None and not series.main_archive.checkUpload(
|
||||||
|
component=src_pkg.latest_published_component_name,
|
||||||
|
distroseries=series, person=launchpad.me, pocket='Release',
|
||||||
sourcepackagename=package):
|
sourcepackagename=package):
|
||||||
print >> sys.stderr, ("E: Sorry, you are not allowed to "
|
print >> sys.stderr, ("E: Sorry, you are not allowed to "
|
||||||
'upload package "%s" to %s.' % (package, dist))
|
'upload package "%s" to %s.' % (package, dist))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user