Bug#823408: pbuilder: add a command-line switch to enable network access

Sandro Tosi morph at debian.org
Wed May 4 13:09:40 UTC 2016


On Wed, May 4, 2016 at 1:54 PM, James Clarke <jrtc27 at jrtc27.com> wrote:
> Hi,
>> On 4 May 2016, at 13:41, Sandro Tosi <morph at debian.org> wrote:
>>
>> Package: pbuilder
>> Version: 0.223
>> Severity: normal
>>
>> Hello,
>> currently network access is disabled by default (which is great!) but if you
>> want to enable it (there are good cases), the only way i can see is thru the
>> config file.
>>
>> I would be useful to have a cli switch to enable/disable network access, so that
>> it could be an option of that single build, and not enabled for all the builds.
>
> You can always use --configfile to point to a file with USENETWORK=yes

so i would need to copy the current configfile, add a line and use it?
that seems a good way to have the 2 files misaligned

> (which could be using the <(echo "USENETWORK=yes") bashism if you want a true one-liner).

which means i lose all the configurations in the configfile

> We could still have a --use(-)network flag for convenience though, so leaving this open.

yeah that's exactly what i need, a cli switch that just enable the
network access for this specific execution of pbuilder leaving all the
other configs are they are.

Regards,
-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



More information about the Pbuilder-maint mailing list