Hello community, here is the log from the commit of package yast2-core for openSUSE:Factory checked in at 2013-11-10 20:37:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-core (Old) and /work/SRC/openSUSE:Factory/.yast2-core.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-core" Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-core/yast2-core.changes 2013-11-07 09:15:16.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-core.new/yast2-core.changes 2013-11-10 20:37:16.000000000 +0100 @@ -1,0 +2,7 @@ +Fri Nov 8 10:25:56 UTC 2013 - [email protected] + +- removed obsolete .target.control.printer_reset, .target.smbmount, + .target.kill ( use .process.kill ) +- 3.1.5 + +------------------------------------------------------------------- Old: ---- yast2-core-3.1.4.tar.bz2 New: ---- yast2-core-3.1.5.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-core.spec ++++++ --- /var/tmp/diff_new_pack.5YS61d/_old 2013-11-10 20:37:17.000000000 +0100 +++ /var/tmp/diff_new_pack.5YS61d/_new 2013-11-10 20:37:17.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-core -Version: 3.1.4 +Version: 3.1.5 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-core-3.1.4.tar.bz2 -> yast2-core-3.1.5.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.4/VERSION new/yast2-core-3.1.5/VERSION --- old/yast2-core-3.1.4/VERSION 2013-11-04 17:47:52.000000000 +0100 +++ new/yast2-core-3.1.5/VERSION 2013-11-08 11:40:47.000000000 +0100 @@ -1 +1 @@ -3.1.4 +3.1.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.4/agent-system/src/SystemAgent.cc new/yast2-core-3.1.5/agent-system/src/SystemAgent.cc --- old/yast2-core-3.1.4/agent-system/src/SystemAgent.cc 2013-11-04 17:47:52.000000000 +0100 +++ new/yast2-core-3.1.5/agent-system/src/SystemAgent.cc 2013-11-08 11:40:47.000000000 +0100 @@ -1219,69 +1219,6 @@ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - else if (cmd == "smbmount") - { - /** - * @builtin Execute (.target.smbmount, [ string server_and_dir, string mountpoint <, string logfile>], [, string options])) -> boolean - * - * Mounts a SMB share at a mountpoint. - * if logfile is given, the stderr of the mount cmd will be appended to - * this file - * - * The return value is true or false, depending of the success - * - * @example Execute (.target.smbmount, ["//windows/crap", "/crap"], "-o guest") - * @example Execute (.target.smbmount, ["//smb/share", "/smbshare", "/var/log/y2mountlog"]) - */ - - if (value.isNull() || !value->isList()) - { - return YCPError ("Bad share argument to Execute (.smbmount, [ string share, string mountpoint <, string y2mountlog> ])"); - } - - YCPList mountlist = value->asList(); - if (mountlist->size() < 2 - || !mountlist->value(0)->isString() - || !mountlist->value(1)->isString()) - { - return YCPError ("Bad list values in argument to Execute (.smbmount, [ string share, string mountpoint ])"); - } - - string mountcmd = "/usr/bin/smbmount "; - - if (!arg.isNull() && arg->isString()) - { - mountcmd += arg->asString()->value() + " "; - } - else - { - return YCPError ("Bad mode argument to Execute (.smbmount, string path, integer mode)"); - } - - // share - mountcmd += mountlist->value(0)->asString()->value() + " "; - - // mountpoint - mountcmd += mountlist->value(1)->asString()->value(); - - // logfile - if (mountlist->size() == 3) - { - if (mountlist->value(2)->isString()) - { - mountcmd += " 2> " + mountlist->value(2)->asString()->value(); - } - else - { - return YCPError ("Bad logfile argument to Execute (.smbmount, [ string device, string mountpoint, string logfile ])"); - } - } - - return YCPBoolean (shellcommand (root(), mountcmd) == 0); - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - else if (cmd == "umount") { /** @@ -1381,71 +1318,6 @@ } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - else if (cmd == "kill") { - - /** - * @builtin Execute(.target.kill, integer pid [, integer signal]) -> boolean - * Kill process with signal (SIGTERM if not specified). - * - * The return value is true or false, depending of the success. - * - * @example Execute (.target.kill, 1, 9) - */ - - if (value.isNull() || !value->isInteger()) - return YCPError("Bad PID in Execute (.kill, integer pid, integer signal)", YCPBoolean(false)); - - int signal = 15; - int pid = value->asInteger()->value(); - - if (!arg.isNull() && arg->isInteger()) - signal = arg->asInteger()->value(); - - return YCPBoolean (kill(pid,signal) != -1); - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - else if (cmd == "control") - { - - if (path->length()<2) - return YCPError(string("Undefined subpath for Execute (.control.")); - - if (path->component_str(1) == "printer_reset") - { - - /** - * @builtin Execute (.target.control.printer_reset, string device) -> boolean - * Reset the given printer (trigger ioctl) - * - * The return value is true or false, depending of the success - * - */ - - if (value.isNull() || !value->isString()) - { - return YCPError ("Bad filename in Execute (.control.printer_reset, string device"); - } - - string device = value->asString()->value(); - - int fd = open(device.c_str(), O_RDWR); - if (fd < 0) - { - return YCPError (string("Open failed: \"" + device + "\" " + string(strerror(errno)?:""))); - } - - int ret = ioctl(fd, LPRESET, NULL); - close(fd); - - return YCPBoolean (ret == 0); - } - - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return YCPError (string("Undefined subpath for Execute (") + path->toString() + ")"); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.4/package/yast2-core.changes new/yast2-core-3.1.5/package/yast2-core.changes --- old/yast2-core-3.1.4/package/yast2-core.changes 2013-11-04 17:47:53.000000000 +0100 +++ new/yast2-core-3.1.5/package/yast2-core.changes 2013-11-08 11:40:47.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Fri Nov 8 10:25:56 UTC 2013 - [email protected] + +- removed obsolete .target.control.printer_reset, .target.smbmount, + .target.kill ( use .process.kill ) +- 3.1.5 + +------------------------------------------------------------------- Mon Nov 4 15:26:11 UTC 2013 - [email protected] - remove remote libraries support on installed system. It requires diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.4/package/yast2-core.spec new/yast2-core-3.1.5/package/yast2-core.spec --- old/yast2-core-3.1.4/package/yast2-core.spec 2013-11-04 17:47:53.000000000 +0100 +++ new/yast2-core-3.1.5/package/yast2-core.spec 2013-11-08 11:40:47.000000000 +0100 @@ -18,7 +18,7 @@ Name: yast2-core -Version: 3.1.4 +Version: 3.1.5 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
