APT

apt:main

Last commit made on 2024-04-30
Get this branch:
git clone -b main https://git.launchpad.net/apt

Branch merges

Branch information

Name:
main
Repository:
lp:apt

Recent commits

bfa55b7... by Julian Andres Klode

Separate columns by 2 spaces in lists

This improves readability a bit more as it's visually easier
to tell " " and "-" apart than " " and "-".

Closes: #1070064

4a76c77... by Julian Andres Klode

Merge branch 'src-specifier' into 'main'

showsrc, source, build-dep: Support src:name

See merge request apt-team/apt!346

84881c1... by Julian Andres Klode

source, build-dep: Allow specifying src:name

This has the same behavior as --only-source name.

9a29aa8... by Julian Andres Klode

showsrc: Support querying src:name

This has the same meaning as --only-source name

c98bcdf... by David Kalnischkies

Allow parsing an empty Provides line

If dpkg-gencontrol was involved in the creation of a package we will not
usually encounter empty or otherwise useless fields, but apparently not
everyone is using it.

It isn't recommended to have these empty lines, but it isn't too hard to
ignore for Provides as we did for dependencies already and apt-ftparchive
can be convinced to produce empty files (if you feed it such a package)
as well, so lets be nice and provide users with a more accepting parser.

Closes: #1069874

05a1ee0... by Julian Andres Klode

Merge branch 'fix/mixed' into 'main'

Split out of mostly independent fixes: cmake execute errors, removed rev-deps, protected garbage & co

See merge request apt-team/apt!345

7a1063e... by David Kalnischkies

Add test for dealing with unsat Suggests promoted to Recommends

Our code does the right thing currently, so lets add a test to ensure
this keeps being the case in the future.

9c06578... by David Kalnischkies

Drop sudo-related envvars in testing framework

Our autoremoval-advertisment is modified by SUDO_USER as if the current
apt call was made with sudo it seems a good idea to show the ad with
sudo as well. That is annoying for our tests through as normally the
tests are run locally or by autopkgtest without sudo, but in Gitlab CI
we use it (to run our tests as user… as we are already root) and so
individual tests had to deal with this.

That is annoying and really not needed as we can have our autoremove
test check that this ad gets displayed the right way and ignore it the
rest of the time.

d030a10... by David Kalnischkies

Do not upgrade rev-deps ear-marked for removal

We schedule reverse dependencies for an upgrade, but we shouldn't do it
if we have ear-marked this package for removal later on. Usually the
solver will end up doing the right thing like it already did in the
included testcase in the end, but given that before it reaches the right
end it explored a bad path which can lead to more installs and removals
influencing later decisions or are just too hard for the resolver to
undo later on, we can just not explore this path to begin with.

References: e077370ffcb3669a50a600e80356c2002e6b176d

e099ee9... by David Kalnischkies

Match version constraints before saving garbage packages

We remove new garbage packages from the solution if we can as installing
a new package which is at the same time considered garbage looks silly,
but it could also be a new dependency of another garbage package, so we
have a second round trying to save such packages. In this round we
weren't considering versioned constraints on dependency relations through
so even an unsatisfied old recommends could save which it shouldn't.