Bug 11527

Summary: apt-get не возвращает код ошибки
Product: Sisyphus Reporter: Anton Farygin <rider>
Component: aptAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: critical    
Priority: P2 CC: boyarsh, glebfm, imz, ldv, php-coder, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 11526    

Description Anton Farygin 2007-04-17 10:23:53 MSD
В случае ошибочной транзакции 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 inger@altlinux.org 2007-04-17 10:25:39 MSD
Соотв. все честные программы, которые надеются на код ошибки, типа alterator-apt
не выдают никакой диагностики.
Comment 2 at@altlinux.org 2007-04-19 01:34:50 MSD
Fixed in 0.5.15lorg2-alt11-1-g50c8f02.
Comment 3 Slava Semushin 2007-08-01 16:50:52 MSD
Mark as FIXED