[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#893397: adapt the cron scripts to use http:// instead of ftp://



Hi,

On Wed, Mar 21, 2018 at 11:26:23AM +0800, Paul Wise wrote:
> On Tue, Mar 20, 2018 at 10:55 PM, Osamu Aoki wrote:
> 
> > apt-get has -C option to use non-standard /etc/apt/sources.list
> > listing unstable distribution:
> 
> This is the wrong way to completely override the system apt
> configuration. The right way is to set the APT_CONFIG environment
> variable. See the apt.conf(5) manual page, APT_CONFIG is the first
> method that apt uses to find the config file and the -C command-line
> option is the very last one so it cannot prevent loading all the
> system config. The chdist tool (from devscripts), the apt-venv package
> and the derivatives census code get this correct.

Great point!
 
> I definitely agree that apt-get could be used to download packages
> from repositories, especially since it will verify hashes and
> signatures.

One negative point of above approach is that it always downloads doc deb
packages even if there are no changes.  Also unpacking code is still
complicated to make it future proof.

Then I thought it may be good idea to create very small Debian unstable
chroot.  Then install pertinent doc packages.  For old deb from
snapshot, we can wget and dpkg -i.  Then this chroot can be updated and
dist-upgraded.  This causes to download all base package updates but
skips repeated download of doc packages.  Hmmm... which is worse?

I think that chroot may need to mount few parent filesystem points.
 mounting /proc filesystem
 mounting /sys filesystem
 creating /{dev,run}/shm
 mounting /dev/pts filesystem
 redirecting /dev/ptmx to /dev/pts/ptmx

Osamu


Reply to: