[Bug 619601] New: zypper gives exit code 0 if update is already installed
http://bugzilla.novell.com/show_bug.cgi?id=619601 http://bugzilla.novell.com/show_bug.cgi?id=619601#c0 Summary: zypper gives exit code 0 if update is already installed Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: chuller@novell.com QAContact: qa@suse.de Found By: Component Test Blocker: --- Description: if i use zypper to install a update package, and it does install that package, then it's return code is 0 if i use zypper to install a update package, and it does not install that package, then it's return case is also 0. So it can not be determined by looking at zyppers exit code if the package got actually upgraded or not. To do automatic update tests this is necessarya s else the ouput from zypper would have to be parsed to determine that success of the test. Howto repeat: Install a package from GA. Now upgrade the package to the latest available version using zypper and check its return code => it's 0 After the package got upgraded, run the zame command again so that zypper does not upgrade the package as the latest version is already installed and check the return code again => it's zero e.g: ----------------------snip----------------------------- linux:/suse/chuller/Wip/studio/scripts/maintenance # /usr/bin/zypper -n install -l -y -t patch slestsosp0-pigz=2499 Loading repository data... Warning: Repository 'studio_update_test_repository' appears to outdated. Consider using a different mirror or server. Reading installed packages... Resolving package dependencies... The following package is going to be upgraded: pigz The following NEW patch is going to be installed: slestsosp0-pigz Overall download size: 28.0 K. No additional space will be used or freed after the operation. Continue? [YES/no]: yes Retrieving package pigz-2.1.5-0.2.1.1.x86_64 (1/2), 28.0 K (58.0 K unpacked) Retrieving: pigz-2.1.5-0.2.1.1.x86_64.rpm [done] Installing: pigz-2.1.5-0.2.1.1 [done] linux:/suse/chuller/Wip/studio/scripts/maintenance # echo $? 0 linux:/suse/chuller/Wip/studio/scripts/maintenance # /usr/bin/zypper -n install -l -y -t patch slestsosp0-pigz=2499 Loading repository data... Warning: Repository 'studio_update_test_repository' appears to outdated. Consider using a different mirror or server. Reading installed packages... 'slestsosp0-pigz' providing 'slestsosp0-pigz=2499' is already installed. Resolving package dependencies... Nothing to do. linux:/suse/chuller/Wip/studio/scripts/maintenance # echo $? 0 ----------------------snip----------------------------- -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619601
http://bugzilla.novell.com/show_bug.cgi?id=619601#c1
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com