Bug 11527 - apt-get не возвращает код ошибки
: apt-get не возвращает код ошибки
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/apt)
: unstable
: all Linux
: P2 critical
Assigned To:
:
:
:
:
: 11526
  Show dependency tree
 
Reported: 2007-04-17 10:23 by
Modified: 2008-03-01 14:57 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-04-17 10:23:53
В случае ошибочной транзакции apt-get не возвращает код ошибки:
# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be upgraded
  dev
1 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/1134kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] 
Committing changes...
Preparing...                          
###################################################################################################
[100%]
** Cannot install dev package: mounted udev detected.
** This is no problem, but to avoid side-effects with
** stopping and starting it automatically, please do:
service udevd umount
apt-get install dev
service udevd start
** Note that some services like syslogd might need
** restart after this, too.
error: execution of %pre scriptlet from dev-3.3.1-alt18 failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping dev-3.3.1-alt18
W: Some errors occurred while running transaction
# echo $?
0
------- Comment #1 From 2007-04-17 10:25:39 -------
Соотв. все честные программы, которые надеются на код ошибки, типа
alterator-apt
не выдают никакой диагностики.
------- Comment #2 From 2007-04-19 01:34:50 -------
Fixed in 0.5.15lorg2-alt11-1-g50c8f02.
------- Comment #3 From 2007-08-01 16:50:52 -------
Mark as FIXED