Hello community,
here is the log from the commit of package yast2-sudo
checked in at Mon Oct 23 18:51:52 CEST 2006.
--------
--- yast2-sudo/yast2-sudo.changes 2006-08-24 23:52:17.000000000 +0200
+++ /mounts/work_src_done/NOARCH/yast2-sudo/yast2-sudo.changes 2006-10-23 10:39:46.000000000 +0200
@@ -1,0 +2,8 @@
+Wed Oct 18 17:06:55 CEST 2006 - kmachalkova@suse.cz
+
+- Fixed command table redrawing in user specification dialog
+- Using real /etc/sudoers instead of testfile in agent (#209388)
+- Fixed permissions (0640) when creating /etc/sudoers
+- 2.14.2
+
+-------------------------------------------------------------------
@@ -4 +12 @@
-- fix requires yast2-theme -> yast2_theme
+- fix requires yast2-theme -> yast2_theme
Old:
----
yast2-sudo-2.14.1.tar.bz2
New:
----
yast2-sudo-2.14.2.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-sudo.spec ++++++
--- /var/tmp/diff_new_pack.IFNxGY/_old 2006-10-23 18:51:45.000000000 +0200
+++ /var/tmp/diff_new_pack.IFNxGY/_new 2006-10-23 18:51:45.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-sudo (Version 2.14.1)
+# spec file for package yast2-sudo (Version 2.14.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-sudo
-Version: 2.14.1
-Release: 2
-License: GPL
+Version: 2.14.2
+Release: 1
+License: GNU General Public License (GPL) - all versions
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-sudo-2.14.1.tar.bz2
+Source0: yast2-sudo-2.14.2.tar.bz2
prefix: /usr
Requires: yast2 yast2-users
#ycp::PathComponents
@@ -38,7 +38,7 @@
Katarina Machalkova
%prep
-%setup -n yast2-sudo-2.14.1
+%setup -n yast2-sudo-2.14.2
%build
%{prefix}/bin/y2tool y2autoconf
@@ -73,6 +73,11 @@
%doc %{prefix}/share/doc/packages/yast2-sudo
%changelog -n yast2-sudo
+* Wed Oct 18 2006 - kmachalkova@suse.cz
+- Fixed command table redrawing in user specification dialog
+- Using real /etc/sudoers instead of testfile in agent (#209388)
+- Fixed permissions (0640) when creating /etc/sudoers
+- 2.14.2
* Thu Aug 24 2006 - ro@suse.de
- fix requires yast2-theme -> yast2_theme
* Wed Aug 23 2006 - kmachalkova@suse.cz
++++++ yast2-sudo-2.14.1.tar.bz2 -> yast2-sudo-2.14.2.tar.bz2 ++++++
++++ 5080 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-sudo-2.14.1/Makefile.am new/yast2-sudo-2.14.2/Makefile.am
--- old/yast2-sudo-2.14.1/Makefile.am 2006-08-23 16:44:35.000000000 +0200
+++ new/yast2-sudo-2.14.2/Makefile.am 2006-10-23 10:21:31.000000000 +0200
@@ -67,7 +67,7 @@
# because the prerequisite is made here (not anymore!)
# and we don't want any paths in y2autoconf
# info '(autoconf)config.status Invocation'
-$(RPMNAME).pc: $(RPMNAME).pc.in
+$(RPMNAME).pc: $(RPMNAME).pc.in config.status
./config.status --file=$@:$<
if CREATE_PKGCONFIG_NOARCH
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-sudo-2.14.1/VERSION new/yast2-sudo-2.14.2/VERSION
--- old/yast2-sudo-2.14.1/VERSION 2006-08-23 16:02:36.000000000 +0200
+++ new/yast2-sudo-2.14.2/VERSION 2006-10-18 17:09:38.000000000 +0200
@@ -1 +1 @@
-2.14.1
+2.14.2
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-sudo-2.14.1/agents/ag_etc_sudoers new/yast2-sudo-2.14.2/agents/ag_etc_sudoers
--- old/yast2-sudo-2.14.1/agents/ag_etc_sudoers 2006-08-22 14:23:09.000000000 +0200
+++ new/yast2-sudo-2.14.2/agents/ag_etc_sudoers 2006-10-18 17:31:34.000000000 +0200
@@ -9,7 +9,7 @@
use Errno qw(ENOENT);
use Data::Dumper;
-my $filename = "/etc/sudoers.test";
+my $filename = "/etc/sudoers";
my %data; #= (
# "Host_Alias" => [ ["# Host Alias Specification","SERVERS", "ns, www, mail"],["","FOO", "www.foo.org"] ],
@@ -119,6 +119,7 @@
rename $filename, "$filename.YaST2.save" or return y2error("Error creating backup: $!"), 0;
}
rename "$filename.YaST2.new", $filename or return y2error("Error moving temp file: $!"), 0;
+ chmod(0640,$filename);
return 1;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-sudo-2.14.1/autodocs-ycp.ami new/yast2-sudo-2.14.2/autodocs-ycp.ami
--- old/yast2-sudo-2.14.1/autodocs-ycp.ami 2006-08-23 16:44:35.000000000 +0200
+++ new/yast2-sudo-2.14.2/autodocs-ycp.ami 2006-10-23 10:21:31.000000000 +0200
@@ -1,18 +1,27 @@
# -*- makefile -*- Automake include file
-# $Id: autodocs-ycp.ami 23438 2005-05-17 16:31:21Z mvidner $
+# $Id: autodocs-ycp.ami 32798 2006-09-11 11:25:01Z mvidner $
# Builds source documentation for YCP sources
# Uses ycpdoc
# PARAMETERS:
# AUTODOCS_YCP: Files that the ycp autodocs is built from
# Optional - the default is $(srcdir)/../../src/*.ycp
+# AUTODOCS_PM: Files that the perl autodocs is built from
+# Optional - the default is $(srcdir)/../../src/*.pm
htmldir = $(docdir)/autodocs
html_DATA = index.html $(wildcard *.html)
-CLEANFILES = $(html_DATA)
+CLEANFILES = $(html_DATA) pod2htm*.tmp
-AUTODOCS_YCP ?= $(srcdir)/../../src/*.ycp
-index.html: $(AUTODOCS_YCP)
- ${YCPDOC} -d. $^
+AUTODOCS_YCP ?= $(wildcard $(srcdir)/../../src/*.ycp)
+AUTODOCS_PM ?= $(wildcard $(srcdir)/../../src/*.pm)
+index.html: $(AUTODOCS_YCP) $(AUTODOCS_PM)
+#including *.pm, for the index
+ ${YCPDOC} -d. $^
+ for i in $(AUTODOCS_PM); do \
+ b=`basename $$i`; b=$${b%.pm}; \
+ pod2html --title=$$b --infile=$$i --outfile=$$b.html; \
+ echo "<a href='$$b.html'>$$b</a>" > $$b.mod.html; \
+ done
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-sudo-2.14.1/configure.in new/yast2-sudo-2.14.2/configure.in
--- old/yast2-sudo-2.14.1/configure.in 2006-08-23 16:44:35.000000000 +0200
+++ new/yast2-sudo-2.14.2/configure.in 2006-10-23 10:21:31.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-sudo
dnl
-dnl -- This file is generated by y2autoconf 2.13.18 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.26 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-sudo, 2.14.1, http://bugs.opensuse.org/, yast2-sudo)
+AC_INIT(yast2-sudo, 2.14.2, http://bugs.opensuse.org/, yast2-sudo)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.14.1"
+VERSION="2.14.2"
RPMNAME="yast2-sudo"
MAINTAINER="Katarina Machalkova "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-sudo-2.14.1/src/dialog-spec.ycp new/yast2-sudo-2.14.2/src/dialog-spec.ycp
--- old/yast2-sudo-2.14.1/src/dialog-spec.ycp 2006-08-23 15:43:01.000000000 +0200
+++ new/yast2-sudo-2.14.2/src/dialog-spec.ycp 2006-10-18 16:58:24.000000000 +0200
@@ -10,22 +10,12 @@
include "sudo/helps.ycp";
include "sudo/complex.ycp";
-void RedrawUserSpec(string user, string host, string runas, boolean pwd, list <string> commands) {
- list <term> items = UpdateCmdList(commands);
+void RedrawCmndTable (list <string> commands) {
+ if (commands != []) {
+ list <term> items = UpdateCmdList(commands);
- if (user != "")
- UI::ChangeWidget(`id("user_name"),`Value, user);
- if (host != "")
- UI::ChangeWidget(`id("host_name"),`Value, host);
-
- if (runas != "") {
- UI::ChangeWidget(`id("run_as"),`Value, deletechars(runas,"()"));
- } else
- UI::ChangeWidget(`id("run_as"),`Value, "");
-
- UI::ChangeWidget(`id("no_passwd"),`Value, pwd);
-
- UI::ChangeWidget(`id("commands"),`Items, items);
+ UI::ChangeWidget(`id("commands"),`Items, items);
+ }
}
@@ -77,7 +67,13 @@
UI::ChangeWidget(`id("user_name"),`ValidChars, "_%-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
UI::ChangeWidget(`id("run_as"),`ValidChars, "_%-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
- RedrawUserSpec(spec["user"]:"", spec["host"]:"", spec["run_as"]:"", spec["no_passwd"]:true, spec["commands"]:[]);
+ //initialize UI
+ UI::ChangeWidget(`id("user_name"),`Value, spec["user"]:"");
+ UI::ChangeWidget(`id("host_name"),`Value, spec["host"]:"");
+ UI::ChangeWidget(`id("run_as"),`Value, deletechars(spec["run_as"]:"","()"));
+ UI::ChangeWidget(`id("no_passwd"),`Value, spec["no_passwd"]:false);
+ RedrawCmndTable(commands);
+
any ret = nil;
while(true) {
@@ -129,7 +125,7 @@
if(!contains(commands, new_command)) {
commands = add(commands, new_command);
- RedrawUserSpec(spec["user"]:"", spec["host"]:"", spec["run_as"]:"", spec["no_passwd"]:false, commands);
+ RedrawCmndTable(commands);
}
/* edit command*/
}else if(ret == "command_edit"){
@@ -138,14 +134,14 @@
string new_command = AddCommandDialog(it[1]:"", it[2]:"");
commands[current_item] = new_command;
- RedrawUserSpec(spec["user"]:"", spec["host"]:"", spec["run_as"]:"", spec["no_passwd"]:false, commands);
+ RedrawCmndTable(commands);
/* remove command */
} else if (ret == "command_remove") {
integer current_item = (integer) UI::QueryWidget(`id("commands"), `CurrentItem);
commands = remove(commands, current_item);
- RedrawUserSpec(spec["user"]:"", spec["host"]:"", spec["run_as"]:"", spec["no_passwd"]:false, commands);
+ RedrawCmndTable(commands);
} else {
y2error("unexpected retcode: %1", ret);
continue;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org