From b49068c566d749130e023536d54588c948c16edf Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 25 Sep 2015 11:25:25 +0200 Subject: 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. --- test/integration/test-apt-mark | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/integration/test-apt-mark') 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 -- cgit v1.2.3