Hello community,

here is the log from the commit of package yast2 for openSUSE:Factory checked 
in at 2013-12-05 07:18:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2 (Old)
 and      /work/SRC/openSUSE:Factory/.yast2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2/yast2.changes      2013-12-03 
16:57:28.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.yast2.new/yast2.changes 2013-12-05 
07:18:22.000000000 +0100
@@ -1,0 +2,8 @@
+Wed Dec  4 12:39:02 UTC 2013 - [email protected]
+
+- deprecate yast --install, --upgrade and --remove and use zypper
+  instead. Suggest using zypper directly from command line.
+  (FATE#316458)
+- 3.1.8
+
+-------------------------------------------------------------------

Old:
----
  yast2-3.1.7.tar.bz2

New:
----
  yast2-3.1.8.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.PRH76q/_old  2013-12-05 07:18:23.000000000 +0100
+++ /var/tmp/diff_new_pack.PRH76q/_new  2013-12-05 07:18:23.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.1.7
+Version:        3.1.8
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-3.1.7.tar.bz2 -> yast2-3.1.8.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.7/VERSION new/yast2-3.1.8/VERSION
--- old/yast2-3.1.7/VERSION     2013-12-03 14:37:01.000000000 +0100
+++ new/yast2-3.1.8/VERSION     2013-12-04 14:36:46.000000000 +0100
@@ -1 +1 @@
-3.1.7
+3.1.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.7/package/yast2.changes 
new/yast2-3.1.8/package/yast2.changes
--- old/yast2-3.1.7/package/yast2.changes       2013-12-03 14:37:02.000000000 
+0100
+++ new/yast2-3.1.8/package/yast2.changes       2013-12-04 14:36:46.000000000 
+0100
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+Wed Dec  4 12:39:02 UTC 2013 - [email protected]
+
+- deprecate yast --install, --upgrade and --remove and use zypper
+  instead. Suggest using zypper directly from command line.
+  (FATE#316458)
+- 3.1.8
+
+-------------------------------------------------------------------
 Tue Dec  3 13:34:50 UTC 2013 - [email protected]
 
 - Update hooks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.7/package/yast2.spec 
new/yast2-3.1.8/package/yast2.spec
--- old/yast2-3.1.7/package/yast2.spec  2013-12-03 14:37:02.000000000 +0100
+++ new/yast2-3.1.8/package/yast2.spec  2013-12-04 14:36:46.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.1.7
+Version:        3.1.8
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.7/scripts/yast2 
new/yast2-3.1.8/scripts/yast2
--- old/yast2-3.1.7/scripts/yast2       2013-12-03 14:37:02.000000000 +0100
+++ new/yast2-3.1.8/scripts/yast2       2013-12-04 14:36:46.000000000 +0100
@@ -201,9 +201,9 @@
                -h|--help) if test "$2" = '--' -a -n "$3" ; then 
CMDLINE_HELP="help" ; else printhelp && exit 0 ; fi ; shift ;;
                -l|--list) listmodules; exit 0 ;;
                -g|--geometry) Y2_GEOMETRY="-geometry $2"; shift 2; ;;
-               -i|--install) Y2_INSTALL_PACKAGES=true; shift ;;
-               --update) Y2_INSTALL_PACKAGES=true; Y2_INSTALL_ACTION=--update; 
shift ;;
-               --remove) Y2_INSTALL_PACKAGES=true; Y2_INSTALL_ACTION=--remove; 
shift ;;
+               -i|--install) Y2_INSTALL_PACKAGES=true; 
Y2_INSTALL_ACTION=install; shift ;;
+               --update) Y2_INSTALL_PACKAGES=true; Y2_INSTALL_ACTION=update; 
shift ;;
+               --remove) Y2_INSTALL_PACKAGES=true; Y2_INSTALL_ACTION=remove; 
shift ;;
                 --fullscreen) Y2UI_ARGS="$Y2UI_ARGS --fullscreen"; shift ;;
                --noborder)   Y2UI_ARGS="$Y2UI_ARGS --noborder"  ; shift ;;
                --kcontrol)   Y2UI_ARGS="$Y2UI_ARGS --kcontrol_id YaST" ; shift 
;;
@@ -218,11 +218,25 @@
        esac
 done
 
+# deprecated, drop after SLE12
 if [ "$Y2_INSTALL_PACKAGES" = "true" ]; then
-       export module=sw_single
-       # #222757
-       # prepend an additional argument if necessary
-       set -- $Y2_INSTALL_ACTION "$@"
+    if [ $# -eq 0 ]; then
+        echo "DEPRECATED. Use sw_single directly: $0 sw_single" >&2
+        export module="sw_single"
+    else
+        # support passing text files with packages
+        # any ycp file support is dropped
+        if [[ -f "$1" && ! "$1" == *rpm ]] ; then
+          cmd="zypper --non-interactive $Y2_INSTALL_ACTION \`cat \"$1\"\`"
+        else
+          cmd="zypper --non-interactive $Y2_INSTALL_ACTION $@"
+        fi
+
+        echo "DEPRECATED. Use zypper directly: $cmd" >&2
+
+        eval "$cmd"
+        exit $?
+    fi
 else
        # allow module as argument, defaults to "menu"
        export module="${1-menu}"

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to