View Issue Details

IDProjectCategoryView StatusLast Update
0000499FakturamaAllgemein (General)public2016-12-28 00:59
ReportermbieblAssigned Torheydenr  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.0.0Fixed in Version2.0.0 
Summary0000499: [FAK-500 (alt)] Problems in Debian maintainer scripts
Description

The Debian fakturama.postinst contains:

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
cp /usr/share/Fakturama/applications/ /usr/share/applications
mv /usr/share/Fakturama/pixmaps/
/usr/share/pixmaps
mv /usr/share/Fakturama/applications/* ~/Desktop

</div></div>

This is problematic for several reasons:


<ul class="alternate" type="square">
  • It copies files into the root home directory, this should never happen from within a package

  • If the /root/Desktop directory does not exist, it will create a file /root/Desktop

  • It removes files from the package list, e.g. tools like debsums will report missing files.

  • The cleanup routine in fakturama.prerm does remove those manually installed files.

  • There is a simple and proper solution for that:

    Ship the files directly in the package at the correct location and remove the logic from postinst.

    I.e. ship

    /usr/share/applications/fakturama.desktop

    /usr/share/pixmaps/Fakturama.png

    TagsNo tags attached.

    Activities

    mbiebl

    2016-01-17 16:54

    viewer   ~0000548

    Last edited: 2017-12-30 00:08

    … in fakturama.prerm does not remove those manually installed files

    rheydenr

    2016-12-28 00:59

    administrator   ~0000549

    Last edited: 2017-12-30 00:08

    fixed with revision 2.0 (new install4j scripts)

    Issue History

    Date Modified Username Field Change
    2017-12-30 00:08 rheydenr New Issue
    2017-12-30 00:08 rheydenr Assigned To => rheydenr
    2017-12-30 00:08 rheydenr Note Added: 0000548
    2017-12-30 00:08 rheydenr Note Added: 0000549