Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Multiple fixes for issues reported to BTS and Launchpad #83
Conversation
rbalint
and others
added some commits
Oct 16, 2017
| @@ -16,7 +16,8 @@ case "$(lsb_release -s -i)" in | ||
| # install u-u to pull in dependencies and mark python3.5-minimal | ||
| # because otherwise u-u autoremoves it while running python3.5 code | ||
| chroot $chroot_dir apt-get install -y unattended-upgrades python3.5-minimal | ||
| - # TODO add a few interesting packages to upgrade | ||
| + # add package set with many dependencies | ||
| + chroot $chroot_dir apt-get install -y xfce4 |
rbalint
Dec 14, 2017
Collaborator
This makes the test fail exposing https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875383
| + | ||
| +set -e | ||
| + | ||
| +chroot_dir=$AUTOPKGTEST_TMP/chroot |
| @@ -504,15 +504,39 @@ def upgrade_in_minimal_steps(cache, # type: apt.Cache | ||
| # double check any changes we do | ||
| allowed_origins = get_allowed_origins() | ||
| + # pre-calculate set sizes to process sets which are expected to be smaller | ||
| + # earlier | ||
| + upgrade_set_sizes = {} |
rbalint
Dec 21, 2017
Collaborator
I have not used mypy on this project but now trying it it reports several issues which I'll resolve in the next PR.
I'm also adding an annotation for this variable.
mvo5
Dec 21, 2017
Owner
Thanks! I added mypy hints a while ago, I thought I also added a corresponding test that is run in travis. Let me check what is going on there.
| pkg_conffiles = deb.control.extractdata("conffiles").strip().decode( | ||
| "utf-8") | ||
| + except SystemError as e: | ||
| + print(_("Apt returned an error, exiting")) | ||
| + print(_("error message: '%s'") % e) |
rbalint
Dec 21, 2017
Collaborator
For the users raising the issue would be as informative as printing it, but I'd like to avoid reporting known and handled errors to errors.ubuntu.com.
| @@ -759,6 +789,15 @@ def conffile_prompt(destFile, prefix=""): | ||
| # record for later | ||
| dpkg_status_conffiles[conf_file] = md5 | ||
| + # the package replaces a directory wih a configuration file |
rbalint
merged commit 43a717c
into
mvo5:master
Dec 21, 2017
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rbalint commentedDec 14, 2017
No description provided.