misc: add a --no-send option (#15541)
This commit is contained in:
parent
f1028ba62b
commit
5e0e71c433
|
@ -552,7 +552,10 @@ def main():
|
||||||
if package:
|
if package:
|
||||||
for arch in options.architectures:
|
for arch in options.architectures:
|
||||||
build_project(dist, arch, project, package, new)
|
build_project(dist, arch, project, package, new)
|
||||||
send_packages(dist, arch, project, package, last_tag)
|
if options.dput:
|
||||||
|
send_packages(dist, arch, project, package, last_tag)
|
||||||
|
else:
|
||||||
|
print("+ Package not sent to repository (--no-dput used).")
|
||||||
print("+ Add a build file to lock new build for %s" % dist)
|
print("+ Add a build file to lock new build for %s" % dist)
|
||||||
touch(os.path.join(project['lock_path'],
|
touch(os.path.join(project['lock_path'],
|
||||||
"%s_%s_%s_%s.build" % (project['name'],
|
"%s_%s_%s_%s.build" % (project['name'],
|
||||||
|
|
|
@ -71,6 +71,8 @@ def parse_cmdline():
|
||||||
default=[],
|
default=[],
|
||||||
dest="repositories", metavar='DISTRIBUTION:REPOSITORY, DISTRIBUTION:REPOSITORY',
|
dest="repositories", metavar='DISTRIBUTION:REPOSITORY, DISTRIBUTION:REPOSITORY',
|
||||||
help="DISTRIBUTION:REPOSITORY: strech:stretch-eobuilder, jessie:jessie-eobuilder, wheezy:wheezy-eobuilder")
|
help="DISTRIBUTION:REPOSITORY: strech:stretch-eobuilder, jessie:jessie-eobuilder, wheezy:wheezy-eobuilder")
|
||||||
|
parser.add_option("--no-dput", dest='dput', action="store_false", default=True,
|
||||||
|
help='do not send package to repository with dput')
|
||||||
|
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue