APT

apt:1.3.y

Last commit made on 2017-07-21
Get this branch:
git clone -b 1.3.y https://git.launchpad.net/apt

Branch merges

Branch information

Name:
1.3.y
Repository:
lp:apt

Recent commits

a3ccb53... by Julian Andres Klode

End of Life

This branch has reached end of life, there will be no further
updates.

353e2b3... by Julian Andres Klode

Release 1.3.9

80b8089... by Julian Andres Klode

apt.systemd.daily: Use unattended-ugrade --download-only if available

Instead of passing -d, which enables a debugging mode; check if
unattended-upgrade supports an option --download-only (which is yet
to be implemented) and use that.

Closes: #863859
Gbp-Dch: Full
(cherry picked from commit 31c81a37ac6dceda0c94ce088b338b6b09afd5a4,
                           cedf80c55766868eadc7ed59a27537c9a5d91edf)

423ba4a... by Julian Andres Klode

Fix parsing of or groups in build-deps with ignored packages

If the last alternative(s) of an Or group is ignored, because it does
not match an architecture list, we would end up keeping the or flag,
effectively making the next AND an OR.

For example, when parsing (on amd64):

    debhelper (>= 9), libnacl-dev [amd64] | libnacl-dev [i386]
 => debhelper (>= 9), libnacl-dev |

Which can cause python-apt to crash.

Even worse:

     debhelper (>= 9), libnacl-dev [amd64] | libnacl-dev [i386], foobar
  => debhelper (>= 9), libnacl-dev [amd64] | foobar

By setting the previous alternatives Or flag to the current Or flag
if the current alternative is ignored, we solve the issue.

LP: #1694697
(cherry picked from commit 7ddf958e370d13f93edc6923bee289b2f6444b41)

6003e8a... by Julian Andres Klode

Ubuntu release 1.3.8

7e65cbf... by Julian Andres Klode

apt.systemd.daily: Drop the LOCKFD variable

Gbp-Dch: ignore
(cherry picked from commit 3819004c2cb3893bfa136f3c44a5783c42cd2a8d)

3310f86... by Alan Jenkins

apt.systemd.daily: fix error from locking code

Error:

    pkgs that look like they should be upgraded:
    Error in function stop
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apt/progress/text.py", line 240,
    in stop
        apt_pkg.size_to_str(self.current_cps))).rstrip("\n"))
      File "/usr/lib/python3/dist-packages/apt/progress/text.py", line 51,
    in _write
        self._file.write("\r")
    AttributeError: 'NoneType' object has no attribute 'write'
    fetch.run() result: 0

Caused by:

    LOCKFD=3
    unattended_upgrades $LOCKFD>&-

Unfortunately this code does not work, it is equivalent to

    unattended_upgrades 3 >&-

I.e. it left fd 3 open, but closed stdout!

Closes: #862567
(cherry picked from commit 7b4581cbe8fcf6e2bd56a27c5a7a1e6ea33d2973)

8d42a4e... by Julian Andres Klode

Do not try to (re)start timers outside 'apt' package

dh_systemd_start inserted postinst commands in all packages,
rather than just the package containing the timers.

This also gets rid of postinst scripts for all other
packages, yay.

Closes: #862001
(cherry picked from commit 315d6aac02b657a4742b5fe2695707904c6033dd)

a46a4f4... by Julian Andres Klode

Ubuntu release 1.3.7

732325f... by Matt Kraai

bash-completion: Fix spelling of autoclean

Closes: #861846
(cherry picked from commit 6ff527b4f8c88ac406effb1d88fdb3c9ab42967b)