Bug 16261 - upgrade error
Summary: upgrade error
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: dblatex (show other bugs)
Version: unstable
Hardware: all Linux
: P2 major
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 14:31 MSD by led
Modified: 2008-07-09 14:21 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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