~bdrung/apport:support-debian-wip

Last commit made on 2017-04-19
Get this branch:
git clone -b support-debian-wip https://git.launchpad.net/~bdrung/apport
Only Benjamin Drung can upload to this branch. If you are Benjamin Drung please log in for upload directions.

Branch merges

Branch information

Name:
support-debian-wip
Repository:
lp:~bdrung/apport

Recent commits

a19ac70... by Benjamin Drung

Work around wrong package name by installing everything

Work around for https://bugs.launchpad.net/apport/+bug/1684117

6a5e86e... by Benjamin Drung

WIP: Check all Contents.gz files

29ac977... by Benjamin Drung

Use Release file to determine Contents-$arch.gz files

Ubuntu uses /dists/$dist/Content-$arch.gz, but Debian uses
/dists/$dist/$component/Content-$arch.gz. Thus download the Release file
and search for Content-$arch.gz files.

Note: This introduces a dependency on python-debian!

2a61f79... by Benjamin Drung

Work around wrong distro name

See https://bugs.launchpad.net/apport/+bug/1684690

2dfb42a... by Benjamin Drung

Support getting packages from http://snapshot.debian.org

The system might use outdated packages that are no longer available from
the Debian archive. Thus add support for downloading them from
http://snapshot.debian.org.

d13444b... by Benjamin Drung

Do not search for files that are already present

needed_runtime_packages() is called for finding packages that are not
installed in the sandbox yet. If the libs are already installed in the
sandbox, do not try to further search for the related package.

ffcaf38... by Benjamin Drung

Strip trailing newline from RetraceOutdatedPackages

A trailing newline in RetraceOutdatedPackages violates the deb822
format.

aea4bc6... by Benjamin Drung

Print error message on HTTP 404 error

f0c4238... by Benjamin Drung

Refactor __AptDpkgPackageInfo._search_contents()

Put caching a file into a separate helper function.

a2ec1ed... by Benjamin Drung

Fix stripping GNU/Linux from DistroRelease

The DistroRelease contains GNU/Linux on Debian (example: "Debian
GNU/Linux 8"). The containing slash is very confusing when using the
DistroRelease as path.

name[1:-2] strips one leading characters and two trailing characters and
removes one character too much at the end. Thus the name.endswith check
fails to match 'GNU/Linux' and does nothing. If it was matching
GNU/Linux, it would set name to a list.

Fix the parsing of /etc/os-release by using shlex.

LP: #1684600