740
740
os.path.join(self.rootdir, 'usr/bin/stat')))
742
742
# Prevent packages from downloading.
743
744
apt_pkg.config.set('Acquire::http::Proxy', 'http://nonexistent')
745
746
os.environ['http_proxy'] = 'http://nonexistent'
747
749
del os.environ['no_proxy']
750
752
self.assertRaises(SystemExit, impl.install_packages, self.rootdir,
751
753
self.configdir, 'Foonux 1.2', [('libc6', None)], False,
752
754
self.cachedir, permanent_rootdir=True)
754
762
# These packages exist, so attempting to install them should not fail.
755
763
impl.install_packages(self.rootdir, self.configdir, 'Foonux 1.2',
756
764
[('coreutils', None), ('tzdata', None)], False, self.cachedir,