Bug 5071 - pyc files are not removed upon uninstall of deb packages.
Summary: pyc files are not removed upon uninstall of deb packages.
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Karl Mikaelsson
URL:
Keywords:
: 7586 (view as bug list)
Depends on: 3744
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-07 12:22 CEST by Henrik Andersson
Modified: 2024-04-09 15:50 CEST (History)
3 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2014-04-07 12:22:42 CEST
Debian packing Python Policy says that postinst should generate pyc files and prerm should remove them.
Comment 1 Pierre Ossman cendio 2020-11-23 16:16:29 CET
This bug is about cleanup, so see bug 3846 for a possible reason to enable compiling on installation.
Comment 2 Pierre Ossman cendio 2020-11-23 16:19:00 CET
*** Bug 7586 has been marked as a duplicate of this bug. ***
Comment 3 Pierre Ossman cendio 2020-11-23 16:19:29 CET
See bug 7586 for details on how this works for normal Debian packages.
Comment 4 Alexander Zeijlon cendio 2024-04-09 15:40:45 CEST
When uninstalling with "apt purge thinlinc-server" on Debian 12, I got the warnings below, in addition to the ones we see that are caused by lingering pyc-files.
> dpkg: warning: while removing thinlinc-server, directory '/var/lib/vsm' not empty so not removed
> dpkg: warning: while removing thinlinc-server, directory '/var/opt/thinlinc/sessions' not empty so not removed
> dpkg: warning: while removing thinlinc-server, directory '/var/opt/thinlinc/statistics' not empty so not removed
Comment 5 Alexander Zeijlon cendio 2024-04-09 15:50:56 CEST
The warnings in comment 4 were seen when uninstalling server 4.16.0 and 4.16.0post_3549.

Note You need to log in before you can comment on or make changes to this bug.