Skip to content

Instantly share code, notes, and snippets.

@takluyver
Created June 20, 2012 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takluyver/2957277 to your computer and use it in GitHub Desktop.
Save takluyver/2957277 to your computer and use it in GitHub Desktop.
Output from unattended_upgrades test_against_real_archive.py
$ python3 test_against_real_archive.py
Initial blacklisted packages: ant-doc
Starting unattended upgrades script
Allowed origins are: <map object at 0x9ad934c>
Checking: ant-doc (<map object at 0x9c6a78c>)
skipping blacklisted package 'ant-doc'
sanity check failed
Checking: apt-doc (<map object at 0x9c4142c>)
Checking: awstats (<map object at 0x9c6a7cc>)
pkgs that look like they should be upgraded: apt-doc
awstats
Fetched 0 B in 0s (0 B/s)
<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 153246 DestFile:'/home/thomas/unattended-upgrades/trunk/test/aptroot/var/cache/apt/archives/apt-doc_0.7.25.3ubuntu9.13_all.deb' DescURI: 'http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-doc_0.7.25.3ubuntu9.13_all.deb' ID:0 ErrorText: ''>
check_conffile_prompt('/home/thomas/unattended-upgrades/trunk/test/aptroot/var/cache/apt/archives/apt-doc_0.7.25.3ubuntu9.13_all.deb')
found pkg: apt-doc
<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 951338 DestFile:'/home/thomas/unattended-upgrades/trunk/test/aptroot/var/cache/apt/archives/awstats_6.9~dfsg-1ubuntu3.10.04.1_all.deb' DescURI: 'http://archive.ubuntu.com/ubuntu/pool/main/a/awstats/awstats_6.9~dfsg-1ubuntu3.10.04.1_all.deb' ID:0 ErrorText: ''>
check_conffile_prompt('/home/thomas/unattended-upgrades/trunk/test/aptroot/var/cache/apt/archives/awstats_6.9~dfsg-1ubuntu3.10.04.1_all.deb')
found pkg: awstats
blacklist: ['ant-doc']
Checking (blacklist): apt-doc
Checking (blacklist): awstats
InstCount=2 DelCount=0 BrokenCout=0
Option --dry-run given, *not* performing real actions
Packages that are upgraded: apt-doc awstats
Writing dpkg log to '/home/thomas/unattended-upgrades/trunk/test/aptroot/var/log/unattended-upgrades-dpkg_2012-06-20_01:12:23.651566.log'
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
/home/thomas/unattended-upgrades/trunk/test/aptroot/usr/bin/dpkg --status-fd 6 --unpack --auto-deconfigure /home/thomas/unattended-upgrades/trunk/test/aptroot/var/cache/apt/archives/apt-doc_0.7.25.3ubuntu9.13_all.deb /home/thomas/unattended-upgrades/trunk/test/aptroot/var/cache/apt/archives/awstats_6.9~dfsg-1ubuntu3.10.04.1_all.deb
/home/thomas/unattended-upgrades/trunk/test/aptroot/usr/bin/dpkg --status-fd 8 --configure apt-doc awstats
All upgrades installed
/home/thomas/unattended-upgrades/trunk/test/unattended_upgrade.py:600: ResourceWarning: unclosed file <_io.TextIOWrapper name=20 mode='r' encoding='UTF-8'>
cache, [pkg.name for pkg in pkgs_to_upgrade], logfile_dpkg)
/home/thomas/unattended-upgrades/trunk/test/unattended_upgrade.py:600: ResourceWarning: unclosed file <_io.TextIOWrapper name=21 mode='w' encoding='UTF-8'>
cache, [pkg.name for pkg in pkgs_to_upgrade], logfile_dpkg)
.
----------------------------------------------------------------------
Ran 1 test in 3.262s
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment