~milner/landscape-client/prevent-client-ui-unicode

Viewing all changes in revision 503.

Merged package-hold-version-check [r=ack,fcorrea] [f=948142].

Make sure that the version is correct when adding and removing package holds.

For deleting holds we always succeed, since the end result is that the
package isn't held at the requested version. For adding holds we fail if
the package is already held at a different version, or if simply a
different version is installed, since if that situation occurs it
probably means that two admins want to hold it at different versions.

I also fixed a test to correctly test adding holds, since it was changed
in an earlier revision. Probably because of test failures. I had to make
sure that we touch /var/lib/dpkg/status if we do many changes within the
same second, otherwise apt won't reparse the file.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: