Author: lslezak Date: Mon Sep 5 20:11:35 2011 New Revision: 65563 URL: http://svn.opensuse.org/viewcvs/yast?rev=65563&view=rev Log: build fix, check binary instead of package Modified: trunk/yast2/library/runlevel/src/Systemd.ycp Modified: trunk/yast2/library/runlevel/src/Systemd.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/runlevel/src/Systemd.ycp?rev=65563&r1=65562&r2=65563&view=diff ============================================================================== --- trunk/yast2/library/runlevel/src/Systemd.ycp (original) +++ trunk/yast2/library/runlevel/src/Systemd.ycp Mon Sep 5 20:11:35 2011 @@ -13,8 +13,7 @@ module "Systemd"; -import "Package"; -import "String"; +const string systemd_path = "/bin/systemd"; textdomain "base"; @@ -23,8 +22,8 @@ */ global boolean Installed() { - // check for systemd package - return Package::Installed("systemd"); + // check for systemd executable + return SCR::Read(.target.size, systemd_path) >= 0; } /* @@ -35,7 +34,6 @@ { // check the command of the init program (PID=1) const string cmdline_path = "/proc/1/cmdline"; - const string systemd_path = "/bin/systemd"; // /proc/<pid>/cmdline is a NULL separated list // we cannot use NULL separator in YCP (?), check just the begining -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org