[Bug 406259] New: [Novell:NTS/supportconfig-plugins] nows does not abort if not installed
https://bugzilla.novell.com/show_bug.cgi?id=406259 Summary: [Novell:NTS/supportconfig-plugins] nows does not abort if not installed Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: jrecord@novell.com ReportedBy: jrecord@novell.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: Development The plugin should error if NOWS is not installed and terminate. It just continues on regardless. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=406259 User jrecord@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=406259#c1 Jason Record <jrecord@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jrecord@novell.com |ragoddard@novell.com --- Comment #1 from Jason Record <jrecord@novell.com> 2008-07-03 11:49:43 MDT --- Reassigning to Randy Goddard. 67 section_header NOWS SBE v2.0 Supportconfig Plugin, v${SVER} 68 section_header RPM List 69 if RPMLIST=$(rpm -qa | egrep -i "simba" | sort); then 70 echo "$RPMLIST" 71 else 72 echo "ERROR: NOWS SBE v2.0 Integrated Installer RPM Packages not installed" 73 echo 74 exit 1 75 fi Should be section_header NOWS SBE v2.0 Supportconfig Plugin, v${SVER} section_header RPM List RPMLIST=$(rpm -qa | egrep -i "simba" | sort) if [ -z "$RPMLIST" ]; then echo "ERROR: NOWS SBE v2.0 Integrated Installer RPM Packages not installed" echo exit 1 else echo "$RPMLIST" fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=406259 User ragoddard@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=406259#c2 Randall Goddard <ragoddard@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ragoddard@novell.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Randall Goddard <ragoddard@novell.com> 2008-07-03 12:21:56 MDT --- =================================================================== --- trunk/scripts/nowssbe2 (revision 13) +++ trunk/scripts/nowssbe2 (revision 14) @@ -66,14 +66,16 @@ section_header NOWS SBE v2.0 Supportconfig Plugin, v${SVER} section_header RPM List -if RPMLIST=$(rpm -qa | egrep -i "simba" | sort); then - echo "$RPMLIST" +RPMLIST=$(rpm -qa | egrep -i "simba" | sort) +if [ -z "$RPMLIST" ]; then + echo "ERROR: NOWS SBE v2.0 Integrated Installer RPM Packages not installed" + echo + exit 1 else - echo "ERROR: NOWS SBE v2.0 Integrated Installer RPM Packages not installed" - echo - exit 1 + echo "$RPMLIST" fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com