Bug 12901 - Package creates unpackaged files
: Package creates unpackaged files
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/powersave)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2007-09-25 12:33 by
Modified: 2012-03-16 13:58 (History)


Attachments


Note

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


Description From 2007-09-25 12:33:57
Is it good practice?

$ rpm -qf /etc/powersave/*
warning: file /etc/powersave/battery is not owned by any package
warning: file /etc/powersave/common is not owned by any package
warning: file /etc/powersave/cpufreq is not owned by any package
warning: file /etc/powersave/disk is not owned by any package
warning: file /etc/powersave/events is not owned by any package
warning: file /etc/powersave/scheme_acoustic is not owned by any package
warning: file /etc/powersave/scheme_performance is not owned by any package
warning: file /etc/powersave/scheme_powersave is not owned by any package
warning: file /etc/powersave/scheme_presentation is not owned by any package
warning: file /etc/powersave/sleep is not owned by any package
warning: file /etc/powersave/thermal is not owned by any package

$ rpm -q --scripts powersave| head -15
postinstall scriptlet (through /bin/sh):

 if [ -n "powersave" ];then 
     DIREXT="-powersave" 
     DIR=powersave 
     mkdir -p /etc/$DIR 
     OUTCONF=/etc/$DIR/scheme_acoustic 
 else 
     OUTCONF=/etc/scheme_acoustic 
 fi 
 TEMPLATE=/usr/share/fillup-templates/sysconfig.scheme_acoustic$DIREXT 
 test -f $OUTCONF || touch $OUTCONF 
 /bin/fillup -q $OUTCONF $TEMPLATE
------- Comment #1 From 2007-09-25 12:53:40 -------
На мантейнера
------- Comment #2 From 2007-09-25 21:09:25 -------
Вообще, эти файлы создаёт и обновляет fillup(1) на основе template'ов от
powersave.  Но по-хорошему надо бы прописать в пакет хотя бы %ghost...
------- Comment #3 From 2008-11-17 17:36:24 -------
0.15.20-alt3