[devel] Obsoletes without version considered harmful

Vladimir Zhukov =?iso-8859-1?q?bertis_=CE=C1_altlinux=2Eru?=
Пт Ноя 23 22:35:12 MSK 2007


Alexey Tourbin пишет:
> On Fri, Nov 23, 2007 at 01:36:24PM +0300, Vladimir Zhukov wrote:
>   
>> Changes statistics since `0.1-alt1-24-g3d639cb' follows:
>>  .gear-rules                                        |    2 +-
>>  ...-desktop.spec => docs-install-desktop_lite.spec |    6 +++---
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> Changelog since `0.1-alt1-24-g3d639cb' follows:
>> commit 259d2e6da9c1c84b4ca21fc9faaa613f7a8f0ec3
>> Author: Vladimir Zhukov <bertis на altlinux>
>> Date:   Fri Nov 23 13:34:28 2007 +0300
>>
>>     package renamed: docs-install-desktop -> docs-install-desktop_lite
>>     - .gear-rules: s/install-desktop/install-desktop_lite
>>     - renamed: docs-install-desktop.spec -> docs-install-desktop_lite.spec
>>     - docs-install-desktop_lite.spec:
>>       + s/install-desktop/install-desktop_lite
>>       + added Provides and Obsoletes needed for package renaming
>>     
> [...]
>
>   
>> -Provides: docs-install0-desktop = 4.0-alt1, docs-install2-desktop = 0.2-alt1
>> -Obsoletes: docs-install0-desktop, docs-install2-desktop
>> +Provides: docs-install0-desktop = 4.0-alt1, docs-install2-desktop = 0.2-alt1, docs-install-desktop = 0.1-alt1
>> +Obsoletes: docs-install0-desktop, docs-install2-desktop, docs-install-desktop
>>     
>
> Господа, не пишите Obsoletes без версий.
> Обычно в случае переименования пакетов лучше всего писать так:
> Provides: foo = %version
> Obsoletes: foo <= %version
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel на lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel
Спасибо, буду знать. Как оказалось, в данном случае ни Provides, ни 
Obsoletes были вообще не нужны.



Подробная информация о списке рассылки Devel