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

James Clarke jrtc27 at jrtc27.com
Wed May 4 13:14:45 UTC 2016


> On 4 May 2016, at 14:09, Sandro Tosi <morph at debian.org> wrote:
> 
> 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

No, just the single line.

>> (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

From pbuilder(8) man page:

       --configfile [configuration file to load]
              Additional configuration file to read after all other configura‐
              tion files have been read.

It’s cumulative; nothing gets lost apart from those variables you override.

>> 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.

Sure, a single option would be more convenient, but you can achieve it now in a
one-liner. Adding a command-line option for every variable you can have in a
config file would make the command-line very crowded though...

Regards,
James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20160504/ec7dbc8c/attachment.sig>


More information about the Pbuilder-maint mailing list