From 7593fb432b0f5b0e66b89781e67f1296f7f7c245 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 29 May 2026 11:46:06 +0700 Subject: [PATCH] Fix handling of (ignored) option -a When building a package with --no-arch-all, I get this error: ``` dh binary-arch --with python-virtualenv dh_update_autotools_config -a dh_autoreconf -a create-stamp debian/debhelper-build-stamp dh_prep -a dh_installdocs -a dh_installchangelogs -a dh_virtualenv -a Usage: dh_virtualenv [options] dh_virtualenv: error: -a option requires 1 argument make: *** [debian/rules:11: binary-arch] Error 2 ``` The `-a` option (cf. man debhelper) doesn't take any argument indeed, so fix accordingly. --- dh_virtualenv/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dh_virtualenv/cmdline.py b/dh_virtualenv/cmdline.py index ec05fb4..78a3b78 100644 --- a/dh_virtualenv/cmdline.py +++ b/dh_virtualenv/cmdline.py @@ -187,7 +187,7 @@ def get_default_parser(): help=("Act on architecture dependent packages that " "should be built for the build architecture. " "This option is ignored"), - action="store", type="string") + action="store_true") parser.add_option('-i', '--indep', dest="indep", help=("Act on all architecture independent packages. "