Author: jdsn
Date: Tue Aug 21 21:47:20 2007
New Revision: 40387
URL: http://svn.opensuse.org/viewcvs/yast?rev=40387&view=rev
Log:
handle sysconfig file with fillup
code cleanup - non root user not supported
Added:
trunk/registration/src/config/sysconfig.suse_register-yast2-registration
Modified:
trunk/registration/VERSION
trunk/registration/package/yast2-registration.changes
trunk/registration/src/clients/inst_suse_register.ycp
trunk/registration/src/config/Makefile.am
trunk/registration/src/modules/Register.ycp
trunk/registration/yast2-registration.spec.in
Modified: trunk/registration/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/VERSION?rev=40387&r1=40386&r2=40387&view=diff
==============================================================================
--- trunk/registration/VERSION (original)
+++ trunk/registration/VERSION Tue Aug 21 21:47:20 2007
@@ -1 +1 @@
-2.15.0
+2.15.1
Modified: trunk/registration/package/yast2-registration.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/package/yast2-registration.changes?rev=40387&r1=40386&r2=40387&view=diff
==============================================================================
--- trunk/registration/package/yast2-registration.changes (original)
+++ trunk/registration/package/yast2-registration.changes Tue Aug 21 21:47:20 2007
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Aug 21 21:42:33 CEST 2007 - jdsn@suse.de
+
+- handling sysconfig file with fillup (#300064)
+- code cleanup - nonroot user not supported
+- 2.15.1
+
+-------------------------------------------------------------------
Fri Aug 3 20:13:19 CEST 2007 - jdsn@suse.de
- new version
Modified: trunk/registration/src/clients/inst_suse_register.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/src/clients/inst_suse_register.ycp?rev=40387&r1=40386&r2=40387&view=diff
==============================================================================
--- trunk/registration/src/clients/inst_suse_register.ycp (original)
+++ trunk/registration/src/clients/inst_suse_register.ycp Tue Aug 21 21:47:20 2007
@@ -462,31 +462,15 @@
if ( textmode )
{
cmd_ok = (integer) SCR::Execute(.target.bash, "test -x /usr/bin/w3m") == 0 ? true:false;
-
- if ( Register::iamroot )
- bcmd = " w3m ";
- else
- {
- cmd_ok = cmd_ok && (integer) SCR::Execute(.target.bash, "test -x /usr/bin/screen") == 0 ? true:false;
- bcmd = " screen w3m ";
- }
+ cmd_ok = cmd_ok && (integer) SCR::Execute(.target.bash, "test -x /usr/bin/screen") == 0 ? true:false;
+ bcmd = " screen w3m ";
}
else
{
-
- if ( Register::iamroot )
- {
- // check for and install mozilla-xulrunner if needed (#175166)
- Package::InstallAllMsg(["mozilla-xulrunner181"], nil);
- cmd_ok = (integer) SCR::Execute(.target.bash, "test -x /usr/bin/xulrunner") == 0 ? true:false;
- bcmd = " MOZ_DISABLE_PANGO=1 /usr/bin/xulrunner /usr/share/YaST2/yastbrowser/application.ini -url ";
- }
- else
- { // this case will never happen because we will not run as non-root (#170736)
- Package::InstallAllMsg(["MozillaFirefox"], nil); // (#175166)
- cmd_ok = (integer) SCR::Execute(.target.bash, "test -x /usr/bin/firefox") == 0 ? true:false;
- bcmd = " firefox -new-window ";
- }
+ // check for and install mozilla-xulrunner if needed (#175166)
+ Package::InstallAllMsg(["mozilla-xulrunner181"], nil);
+ cmd_ok = (integer) SCR::Execute(.target.bash, "test -x /usr/bin/xulrunner") == 0 ? true:false;
+ bcmd = " MOZ_DISABLE_PANGO=1 /usr/bin/xulrunner /usr/share/YaST2/yastbrowser/application.ini -url ";
}
if (! cmd_ok) return "nobrowser";
@@ -496,19 +480,13 @@
if (Register::use_proxy)
{
- // check if proxy setting is correct (#208651)
- string proxy_http = Register::http_proxy;
- string proxy_https = Register::https_proxy;
- if (proxy_http == nil) proxy_http = "";
- if (proxy_https == nil) proxy_https = "";
-
// (#165891)
- bcmd = " http_proxy='" + proxy_http + "' " + bcmd;
- bcmd = " https_proxy='" + proxy_https + "' " + bcmd;
+ bcmd = " http_proxy='" + Register::http_proxy + "' " + bcmd;
+ bcmd = " https_proxy='" + Register::https_proxy + "' " + bcmd;
}
- // in case of root add su call to not run a browser as root during installation
- if ( Register::iamroot ) bcmd = su_exec("suse-ncc", "suse-ncc", bcmd );
+ // add su call to not run a browser as root during installation
+ bcmd = su_exec("suse-ncc", "suse-ncc", bcmd );
return bcmd;
}
Modified: trunk/registration/src/config/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/src/config/Makefile.am?rev=40387&r1=40386&r2=40387&view=diff
==============================================================================
--- trunk/registration/src/config/Makefile.am (original)
+++ trunk/registration/src/config/Makefile.am Tue Aug 21 21:47:20 2007
@@ -5,6 +5,8 @@
rncdir = $(schemadir)/autoyast/rnc
rnc_DATA = registration.rnc
-EXTRA_DIST = $(desktop_DATA) $(rnc_DATA)
+fillup_DATA = sysconfig.suse_register-yast2-registration
+
+EXTRA_DIST = $(desktop_DATA) $(rnc_DATA) $(fillup_DATA)
include $(top_srcdir)/Makefile.am.common
Added: trunk/registration/src/config/sysconfig.suse_register-yast2-registration
URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/src/config/sysconfig.suse_register-yast2-registration?rev=40387&view=auto
==============================================================================
--- trunk/registration/src/config/sysconfig.suse_register-yast2-registration (added)
+++ trunk/registration/src/config/sysconfig.suse_register-yast2-registration Tue Aug 21 21:47:20 2007
@@ -0,0 +1,20 @@
+## Path: System/Yast2/SUSEregister
+## Description: Online Update Configuration
+
+## Type: boolean
+## Default: ""
+#
+# Send optional data during registration
+#
+#
+SUBMIT_OPTIONAL=""
+
+## Type: boolean
+## Default: ""
+#
+# Send information about used hardware during registration.
+# I order to ship needed drivers in future releases you can
+# help us improving the distriburtion by sending data about
+# your used hardware.
+#
+SUBMIT_HWDATA=""
Modified: trunk/registration/src/modules/Register.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/src/modules/Register.ycp?rev=40387&r1=40386&r2=40387&view=diff
==============================================================================
--- trunk/registration/src/modules/Register.ycp (original)
+++ trunk/registration/src/modules/Register.ycp Tue Aug 21 21:47:20 2007
@@ -61,22 +61,6 @@
// START: Locally defined functions
// ------------------------------------------------------------------
-/*
- * get_home_dir()
- *
- * get the home directory of the user running this module
- * because not only root is allowed to run inst_suse_register
- *
- * @return home directory as string
- *
- */
-string get_home_dir()
-{
- map