Sean Whitton writes ("Bug#883340: dgit build accesses the internet and fails
when offline."):
> On Mon, Dec 04 2017, Ian Jackson wrote:
> > Well, yes, except that the dgit *build subcommands are already such
> > aliases. They exist because debuild etc. mishandle .git and/or
> > .gitignore, mostly.
>
> No, I don't think that's right, because they do all the network stuff
> before they invoke the standard tools.
>
> The offline build command would be /purely/ an alias, so far as I can
> tell.
I think we are talking about cross purposes.
dgit's build subcommands all pass non-standard -I -i options to
dpkg-buildpackage. These -I -i options are lengthy (and have changed
in dgit's history at least once due to a bug being discovered), so
they need to be abstracted somewhere.
So even to do a completely offline build, not intended for upload, it
is necessary to use some kind of nonstandard wrapper (other than
debuild or whatever), unless no source package is required at all.
(That the default for dpkg-buildpackage is the way it is is IMO wrong,
but that doesn't really affect this discussion unless you think we can
get it changed soon.)
Ian.