Bug 11527

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

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