diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-25 11:25:25 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 18:04:00 +0100 |
commit | b49068c566d749130e023536d54588c948c16edf (patch) | |
tree | 9d4b0921040f2b529eda14c2d2cc209be0815d37 /test | |
parent | 05ef357e575e9c25eb6a35cb693d1eb19bb14d45 (diff) |
provide public interface to hold/unhold packages
We had this code lying around in apt-mark for a while now, but other
frontends need this (and similar) functionality as well, so its high
time that we provide a public interface in libapt for this stuff.
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-apt-mark | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/test-apt-mark b/test/integration/test-apt-mark index 9b68945f9..ec4ed8316 100755 --- a/test/integration/test-apt-mark +++ b/test/integration/test-apt-mark @@ -99,3 +99,16 @@ testmarkonepkgashold 'uninstalled-native' testsuccessequal 'uninstalled set on hold.' aptmark hold uninstalled testsuccessequal 'uninstalled-native set on hold.' aptmark hold uninstalled-native +#FIXME: holds on uninstalled packages are not persistent in dpkg +testsuccessequal 'Reading package lists... +Building dependency tree... +Reading state information... +The following NEW packages will be installed: + uninstalled uninstalled-native +The following held packages will be changed: + uninstalled-native +0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. +Inst uninstalled (1 unstable [all]) +Inst uninstalled-native (1 unstable [amd64]) +Conf uninstalled (1 unstable [all]) +Conf uninstalled-native (1 unstable [amd64])' aptget install uninstalled uninstalled-native -s |