[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: To purge or not to purge? That is a question!



20.08.2006 в 10:17:05 +0400 Stanislav Maslovski написал:
> On Sun, Aug 20, 2006 at 10:06:31AM +0400, Stanislav Maslovski wrote:
> > On Sun, Aug 20, 2006 at 10:22:05AM +0500, Степан Голосунов wrote:
> > > 12.08.2006 в 11:18:25 +0400 Stanislav Maslovski написал:
> > > > On Sat, Aug 12, 2006 at 11:26:44AM +0500, Степан Голосунов wrote:
> > > > > On Sat, Aug 12, 2006 at 12:59:07AM +0400, Stanislav Maslovski wrote:
> > > 
> > > Посмотрел. Файл /etc/config_file.test не удаляется потому, что пакет
> > > нарушает policy 10.7.3.
> > 
> > Интересное замечание. А можно по-подробнее?

10.7.3. Behavior
----------------

     Configuration file handling must conform to the following behavior:
        * local changes must be preserved during a package upgrade, and
        * configuration files must be preserved when the package is
          removed, and only deleted when the package is purged.

     The easy way to achieve this behavior is to make the configuration
     file a `conffile'...


     The other way to do it is via the maintainer scripts.  In this case,
     the configuration file must not be listed as a `conffile' and must not
     be part of the package distribution...


> Т.е. вероятно, Вы (как и я, впрочем, уже) просто забыли, что pkgz был как раз и предназначен для того, чтобы проверить этот нестандартный случай, а именно: в одном пакете файл отмечен как conffile, а в другом - нет, т.е. случай, который тянет на баг репорт.

Нет. Я имел в виду случай, когда старый пакет использует второй сценарий
из policy 10.7.3, а новый - первый. Это тянет на баг, но этот баг надо
ещё обнаружить. Что касается pkgz, то он вообще не выполняет 10.7.3, и
этот случай легко выявляется каким-нибудь lintian'ом
(file-in-etc-not-marked-as-conffile).



Reply to: