installation_sources: fixed to be compatible even with
authorMartin Vidner <mvidner@suse.cz>
Thu, 30 Nov 2006 16:32:57 +0000 (16:32 +0000)
committerMartin Vidner <mvidner@suse.cz>
Thu, 30 Nov 2006 16:32:57 +0000 (16:32 +0000)
/opt/kde3/bin/kde_add_yast_source.sh (#223795).

package/zypper.changes
src/installation_sources

index 3e83004..10c5fec 100644 (file)
@@ -1,6 +1,8 @@
 -------------------------------------------------------------------
-Thu Nov 30 17:05:36 CET 2006 - mvidner@suse.cz
+Thu Nov 30 17:32:35 CET 2006 - mvidner@suse.cz
 
+- installation_sources: fixed to be compatible even with
+  /opt/kde3/bin/kde_add_yast_source.sh (#223795).
 - Do not needlessly use libtool (#224738).
 - zypp-checkpatches does not need -lboost_program_options (#224764)
 
index 254ec39..edf30df 100644 (file)
@@ -3,8 +3,19 @@
 # that was in yast2-packagemanager.rpm
 
 ZYPPER=zypper
+
+# be even more compatible, #223795
+Zypper() {
+  $ZYPPER "$@" 2>&1
+  E=$?
+  if [ $E -gt 0 -a $E -lt 100 ]; then
+    echo ERROR
+  fi
+  exit $E
+}
+
 if [ "x$1" = "x-s" ]; then
-   exec $ZYPPER service-list
+   Zypper service-list
 fi
 
 if [ "x$1" = "x-e" ]; then
@@ -15,7 +26,7 @@ elif [ "x$1" = "x-d" ]; then
 fi
 
 if [ "x$1" = "x-a" -a -n "$2" ]; then
-   exec $ZYPPER service-add $ENABLED "$2"
+   Zypper service-add $ENABLED "$2"
 fi
 
 cat >&2 <<EOF