diff --git a/eobuilder-ctl b/eobuilder-ctl index 12cfdf4..979dcaf 100755 --- a/eobuilder-ctl +++ b/eobuilder-ctl @@ -552,7 +552,10 @@ def main(): if package: for arch in options.architectures: 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) touch(os.path.join(project['lock_path'], "%s_%s_%s_%s.build" % (project['name'], diff --git a/eobuilder/cmdline.py b/eobuilder/cmdline.py index 6e50240..31ed548 100644 --- a/eobuilder/cmdline.py +++ b/eobuilder/cmdline.py @@ -71,6 +71,8 @@ def parse_cmdline(): default=[], dest="repositories", metavar='DISTRIBUTION:REPOSITORY, DISTRIBUTION:REPOSITORY', 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()