Bug 31155 - PackageManager does not mark packages as user-installed under certain circumstances
PackageManager does not mark packages as user-installed under certain circums...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.1-1-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-24 11:00 CEST by Dirk Wiesenthal
Modified: 2013-05-22 16:17 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2013-04-24 11:00:45 CEST
Seen when installing UCC:

install: ucc-thinclient-image,python-univention-directory-manager-ucc,ucc-management-integration,python-univention-directory-manager-ucc,univention-corporate-client-schema

univention-corporate-client-schema is not marked as installed by the user and thus may be autoremoved if all its dependencies are to be removed (as happens when uninstalling UCC)

This is probably caused by the fact that univention-corporate-client-schema depends on some of the other packages and may be marked autoinstalled before schema itself is being marked as installed.

Fix:
for pkg in install:
  try:
    pkg.mark_install(auto_fix=False)
+   pkg.mark_auto(False)
  except SystemError:
Comment 1 Dirk Wiesenthal univentionstaff 2013-05-15 13:23:55 CEST
Fixed in (3.1-1):
  univention-lib 2.0.26-3.132.201305151315
and (3.1-2):
  univention-lib 2.0.28-1.131.201305151311

Changelog, YAML updated
Comment 2 Felix Botner univentionstaff 2013-05-16 12:30:35 CEST
OK - errata3.1-1
OK - YAML

OK - ucs3.1-2
OK - changelog
Comment 3 Moritz Muehlenhoff univentionstaff 2013-05-22 16:17:23 CEST
http://errata.univention.de/ucs/3.1/108.html