pdebuild overrides --buildresult
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbuilder (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
affects /ubuntu/pbuilder
pdebuild is meant to take pbuilder options after a --, according to the
help.
e.g.
pdebuild -- --buildresult /path/to/dir
and for most options, this works - e.g.
pdebuild -- --basetgz my-base.tgz
however, one option in particular does not work this way - --buildresult
if you do
pdebuild -- --buildresult /path/to/dir, then the parser in
/usr/lib/
--buildresult in the pdebuild specific options, which leads to
BUILDRESULT="" being exported, this then is passed onto the pbuilder
command explicitly, *after* the supplied --buildresult, overriding it.
Changing this line in /usr/bin/pdebuild
${PBUILDERR
To
${PBUILDERR
Fixes it for me.
That is - move the --buildresult option before the "$@". Moving "$@" to
the end of the line would avoid all possible cases of that, but I
haven't thought deeply enough about the implications to predict side
effects.
-Rob
--
GPG key available at: <http://
actually, I'm fixing 'behaviour by design'.
If anyone cares, the UI here is bad: the option can be given in the
pbuilder options, and folk using generated options, such as using
pbuilder for several arches and distros at once, *will* be bitten by
this, even if they find it in the man page, its inconsistent and should
really be fixed.
-- www.robertcolli ns.net/ keys.txt>.
GPG key available at: <http://