Bug 16261

Summary: upgrade error
Product: Sisyphus Reporter: led
Component: dblatexAssignee: Grigory Ustinov <grenka>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: major    
Priority: P2 CC: grenka
Version: unstable   
Hardware: all   
OS: Linux   

Description led 2008-07-04 14:31:07 MSD
# apt-get install dblatex
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  dblatex
0 upgraded, 1 newly installed, 0 removed and 27 not upgraded.
Need to get 0B/638kB of archives.
After unpacking 5064kB of additional disk space will be used.
Committing changes...
Preparing...                 ######################################################################################## [100%]
1: dblatex                   error: unpacking of archive failed on file /usr/share/dblatex/latex/contrib: cpio: rename failed - Is a directory
E: Some errors occurred while running transaction

# ls -ld /usr/share/dblatex/latex/contrib
drwxr-xr-x 4 root root 96 Jul  1 11:59 /usr/share/dblatex/latex/contrib

Нельзя так просто заменить каталог на софт-линк.
Исправьте, пожалуйста.
Comment 1 kirill 2008-07-04 15:02:49 MSD
Мда. Как же теперь это исправить, ставить триггер, сперва удаляющий каталог? 
Comment 2 led 2008-07-04 15:14:17 MSD
(In reply to comment #1)
> Мда. Как же теперь это исправить, ставить триггер, сперва удаляющий каталог? 

Может так:
%pre
[ -h %_datadir/%name/latex/contrib ] || rm -rf %_datadir/%name/latex/contrib

?
Comment 3 kirill 2008-07-09 12:09:33 MSD
0.2.9-alt2