Bug 12901 - Package creates unpackaged files
Summary: Package creates unpackaged files
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: powersave (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Damir Shayhutdinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 12:33 MSD by Sergey V Kovalyov
Modified: 2012-03-16 13:58 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey V Kovalyov 2007-09-25 12:33:57 MSD
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 Anton Farygin 2007-09-25 12:53:40 MSD
На мантейнера
Comment 2 Sir Raorn 2007-09-25 21:09:25 MSD
Вообще, эти файлы создаёт и обновляет fillup(1) на основе template'ов от
powersave.  Но по-хорошему надо бы прописать в пакет хотя бы %ghost...
Comment 3 Sir Raorn 2008-11-17 17:36:24 MSK
0.15.20-alt3