Hello community,
here is the log from the commit of package yast2-add-on-creator
checked in at Mon Apr 28 16:33:09 CEST 2008.
--------
--- yast2-add-on-creator/yast2-add-on-creator.changes 2008-04-25 10:29:03.000000000 +0200
+++ /mounts/work_src_done/NOARCH/yast2-add-on-creator/yast2-add-on-creator.changes 2008-04-28 14:58:02.614496000 +0200
@@ -1,0 +2,7 @@
+Mon Apr 28 14:26:15 CEST 2008 - jsuchome@suse.cz
+
+- save list of products to $HOME if module is not called by root
+- added /etc/sysconfig/add-on-creator for storing default values
+- 2.16.10
+
+-------------------------------------------------------------------
Old:
----
yast2-add-on-creator-2.16.9.tar.bz2
New:
----
yast2-add-on-creator-2.16.10.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-add-on-creator.spec ++++++
--- /var/tmp/diff_new_pack.hV4417/_old 2008-04-28 16:32:43.000000000 +0200
+++ /var/tmp/diff_new_pack.hV4417/_new 2008-04-28 16:32:43.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-add-on-creator (Version 2.16.9)
+# spec file for package yast2-add-on-creator (Version 2.16.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,13 +12,14 @@
Name: yast2-add-on-creator
-Version: 2.16.9
+Version: 2.16.10
Release: 1
License: GPL v2 only; GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-add-on-creator-2.16.9.tar.bz2
+Source0: yast2-add-on-creator-2.16.10.tar.bz2
Prefix: /usr
+PreReq: %fillup_prereq
Requires: yast2
BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite
BuildArch: noarch
@@ -34,7 +35,7 @@
Jiř� Suchomel
%prep
-%setup -n yast2-add-on-creator-2.16.9
+%setup -n yast2-add-on-creator-2.16.10
%build
%{prefix}/bin/y2tool y2autoconf
@@ -57,6 +58,9 @@
%clean
rm -rf "$RPM_BUILD_ROOT"
+%post
+%{fillup_only -n add-on-creator}
+
%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/add-on-creator
@@ -69,7 +73,12 @@
/usr/share/YaST2/scrconf/*.scr
/usr/lib/YaST2/servers_non_y2/ag_*
%doc %{prefix}/share/doc/packages/yast2-add-on-creator
+/var/adm/fillup-templates/sysconfig.add-on-creator
%changelog
+* Mon Apr 28 2008 jsuchome@suse.cz
+- save list of products to $HOME if module is not called by root
+- added /etc/sysconfig/add-on-creator for storing default values
+- 2.16.10
* Fri Apr 25 2008 jsuchome@suse.cz
- fixed some widget layouts
- allow deleting keys from package descriptions
++++++ yast2-add-on-creator-2.16.9.tar.bz2 -> yast2-add-on-creator-2.16.10.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/agents/cfg_add-on-creator.scr new/yast2-add-on-creator-2.16.10/agents/cfg_add-on-creator.scr
--- old/yast2-add-on-creator-2.16.9/agents/cfg_add-on-creator.scr 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-add-on-creator-2.16.10/agents/cfg_add-on-creator.scr 2008-04-28 14:22:06.000000000 +0200
@@ -0,0 +1,17 @@
+/**
+ * File:
+ * cfg_add-on-creator.scr
+ * Summary:
+ * SCR Agent for reading/writing /etc/sysconfig/add-on-creator
+ * using the sysconfig-agent
+ *
+ * $Id: cfg_add-on-creator.scr 13009 2003-12-10 13:59:07Z jsuchome $
+ *
+ * Read/Sets the values defined in <tt>/etc/sysconfig/add-on-creator</tt>
+ * in an easy manner.
+ */
+.sysconfig.add-on-creator
+
+`ag_ini(
+ `SysConfigFile("/etc/sysconfig/add-on-creator")
+)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/agents/Makefile.am new/yast2-add-on-creator-2.16.10/agents/Makefile.am
--- old/yast2-add-on-creator-2.16.9/agents/Makefile.am 2007-01-31 08:57:52.000000000 +0100
+++ new/yast2-add-on-creator-2.16.10/agents/Makefile.am 2008-04-28 14:28:17.000000000 +0200
@@ -6,4 +6,6 @@
scrconf_DATA = *.scr
-EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
+fillup_DATA = sysconfig.add-on-creator
+
+EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA) $(fillup_DATA)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/agents/Makefile.in new/yast2-add-on-creator-2.16.10/agents/Makefile.in
--- old/yast2-add-on-creator-2.16.9/agents/Makefile.in 2008-04-25 10:07:16.000000000 +0200
+++ new/yast2-add-on-creator-2.16.10/agents/Makefile.in 2008-04-28 14:28:20.000000000 +0200
@@ -44,7 +44,8 @@
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
-am__installdirs = "$(DESTDIR)$(agentdir)" "$(DESTDIR)$(scrconfdir)"
+am__installdirs = "$(DESTDIR)$(agentdir)" "$(DESTDIR)$(fillupdir)" \
+ "$(DESTDIR)$(scrconfdir)"
agentSCRIPT_INSTALL = $(INSTALL_SCRIPT)
SCRIPTS = $(agent_SCRIPTS)
SOURCES =
@@ -55,8 +56,9 @@
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+fillupDATA_INSTALL = $(INSTALL_DATA)
scrconfDATA_INSTALL = $(INSTALL_DATA)
-DATA = $(scrconf_DATA)
+DATA = $(fillup_DATA) $(scrconf_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
@@ -175,7 +177,8 @@
ystartupdir = @ystartupdir@
agent_SCRIPTS = ag_*
scrconf_DATA = *.scr
-EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
+fillup_DATA = sysconfig.add-on-creator
+EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA) $(fillup_DATA)
all: all-am
.SUFFIXES:
@@ -227,6 +230,23 @@
echo " rm -f '$(DESTDIR)$(agentdir)/$$f'"; \
rm -f "$(DESTDIR)$(agentdir)/$$f"; \
done
+install-fillupDATA: $(fillup_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(fillupdir)" || $(MKDIR_P) "$(DESTDIR)$(fillupdir)"
+ @list='$(fillup_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(fillupDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fillupdir)/$$f'"; \
+ $(fillupDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fillupdir)/$$f"; \
+ done
+
+uninstall-fillupDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(fillup_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(fillupdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(fillupdir)/$$f"; \
+ done
install-scrconfDATA: $(scrconf_DATA)
@$(NORMAL_INSTALL)
test -z "$(scrconfdir)" || $(MKDIR_P) "$(DESTDIR)$(scrconfdir)"
@@ -281,7 +301,7 @@
check: check-am
all-am: Makefile $(SCRIPTS) $(DATA)
installdirs:
- for dir in "$(DESTDIR)$(agentdir)" "$(DESTDIR)$(scrconfdir)"; do \
+ for dir in "$(DESTDIR)$(agentdir)" "$(DESTDIR)$(fillupdir)" "$(DESTDIR)$(scrconfdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
@@ -326,7 +346,8 @@
info-am:
-install-data-am: install-agentSCRIPTS install-scrconfDATA
+install-data-am: install-agentSCRIPTS install-fillupDATA \
+ install-scrconfDATA
install-dvi: install-dvi-am
@@ -360,7 +381,8 @@
ps-am:
-uninstall-am: uninstall-agentSCRIPTS uninstall-scrconfDATA
+uninstall-am: uninstall-agentSCRIPTS uninstall-fillupDATA \
+ uninstall-scrconfDATA
.MAKE: install-am install-strip
@@ -368,12 +390,13 @@
distclean-generic distdir dvi dvi-am html html-am info info-am \
install install-agentSCRIPTS install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-scrconfDATA install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am uninstall uninstall-agentSCRIPTS uninstall-am \
+ install-exec-am install-fillupDATA install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-scrconfDATA install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
+ uninstall-agentSCRIPTS uninstall-am uninstall-fillupDATA \
uninstall-scrconfDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/agents/sysconfig.add-on-creator new/yast2-add-on-creator-2.16.10/agents/sysconfig.add-on-creator
--- old/yast2-add-on-creator-2.16.9/agents/sysconfig.add-on-creator 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-add-on-creator-2.16.10/agents/sysconfig.add-on-creator 2008-04-28 14:21:02.000000000 +0200
@@ -0,0 +1,9 @@
+## Path: System/Yast2/Add-On-Creator
+## Description: YaST2 Add-On Creator
+## Type: string
+## Default: none
+#
+# Default value of 'VENDOR' key in the content file for new Add-On Products.
+#
+#
+VENDOR=""
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/configure new/yast2-add-on-creator-2.16.10/configure
--- old/yast2-add-on-creator-2.16.9/configure 2008-04-25 10:07:15.000000000 +0200
+++ new/yast2-add-on-creator-2.16.10/configure 2008-04-28 14:27:38.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-add-on-creator 2.16.9.
+# Generated by GNU Autoconf 2.61 for yast2-add-on-creator 2.16.10.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -574,8 +574,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-add-on-creator'
PACKAGE_TARNAME='yast2-add-on-creator'
-PACKAGE_VERSION='2.16.9'
-PACKAGE_STRING='yast2-add-on-creator 2.16.9'
+PACKAGE_VERSION='2.16.10'
+PACKAGE_STRING='yast2-add-on-creator 2.16.10'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1197,7 +1197,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-add-on-creator 2.16.9 to adapt to many kinds of systems.
+\`configure' configures yast2-add-on-creator 2.16.10 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1268,7 +1268,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-add-on-creator 2.16.9:";;
+ short | recursive ) echo "Configuration of yast2-add-on-creator 2.16.10:";;
esac
cat <<\_ACEOF
@@ -1346,7 +1346,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-add-on-creator configure 2.16.9
+yast2-add-on-creator configure 2.16.10
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1360,7 +1360,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-add-on-creator $as_me 2.16.9, which was
+It was created by yast2-add-on-creator $as_me 2.16.10, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2181,7 +2181,7 @@
# Define the identity of the package.
PACKAGE='yast2-add-on-creator'
- VERSION='2.16.9'
+ VERSION='2.16.10'
cat >>confdefs.h <<_ACEOF
@@ -2409,7 +2409,7 @@
-VERSION="2.16.9"
+VERSION="2.16.10"
RPMNAME="yast2-add-on-creator"
MAINTAINER="Jiri Suchomel "
@@ -3304,7 +3304,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-add-on-creator $as_me 2.16.9, which was
+This file was extended by yast2-add-on-creator $as_me 2.16.10, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -3347,7 +3347,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-add-on-creator config.status 2.16.9
+yast2-add-on-creator config.status 2.16.10
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/configure.in new/yast2-add-on-creator-2.16.10/configure.in
--- old/yast2-add-on-creator-2.16.9/configure.in 2008-04-25 10:07:10.000000000 +0200
+++ new/yast2-add-on-creator-2.16.10/configure.in 2008-04-28 14:27:33.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.8 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-add-on-creator, 2.16.9, http://bugs.opensuse.org/, yast2-add-on-creator)
+AC_INIT(yast2-add-on-creator, 2.16.10, http://bugs.opensuse.org/, yast2-add-on-creator)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.16.9"
+VERSION="2.16.10"
RPMNAME="yast2-add-on-creator"
MAINTAINER="Jiri Suchomel "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/src/AddOnCreator.ycp new/yast2-add-on-creator-2.16.10/src/AddOnCreator.ycp
--- old/yast2-add-on-creator-2.16.9/src/AddOnCreator.ycp 2008-04-25 10:28:45.000000000 +0200
+++ new/yast2-add-on-creator-2.16.10/src/AddOnCreator.ycp 2008-04-28 14:57:36.000000000 +0200
@@ -24,7 +24,7 @@
* Summary: AddOnCreator settings, input and output functions
* Authors: Jiri Suchomel
*
- * $Id: AddOnCreator.ycp 47052 2008-04-25 08:28:44Z jsuchome $
+ * $Id: AddOnCreator.ycp 47111 2008-04-28 12:57:36Z jsuchome $
*
* Representation of the configuration of add-on-creator.
* Input and output routines.
@@ -848,6 +848,16 @@
gpg_keys = read_secret_keys ();
+ map out = (map) SCR::Execute (.target.bash_output, "/usr/bin/id --user");
+ if (out["stdout"]:"" != "0\n" && out["stdout"]:"" != "")
+ {
+ // TODO use getenv builtin when it is available
+ out = (map) SCR::Execute (.target.bash_output, "echo $HOME");
+ string home = deletechars (out["stdout"]:"", "\n");
+ if (home != "" && home != nil)
+ add_on_products_file = home + "/add_on_products.ycp";
+ }
+
// Read the info of configured AddOns
if (FileUtils::Exists (add_on_products_file))
{
@@ -879,6 +889,12 @@
}
if (key == "DEFAULTBASE")
content_descr[key,"value"] = Arch::architecture ();
+ string defval = (string)SCR::Read (add(.sysconfig.add-on-creator, key));
+ if (defval != nil && defval != "")
+ {
+ y2milestone ("using default value for %1: %2", key, defval);
+ content_descr[key,"value"] = defval;
+ }
i = i + 1;
});
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-add-on-creator-2.16.9/VERSION new/yast2-add-on-creator-2.16.10/VERSION
--- old/yast2-add-on-creator-2.16.9/VERSION 2008-04-25 10:07:01.000000000 +0200
+++ new/yast2-add-on-creator-2.16.10/VERSION 2008-04-28 14:27:22.000000000 +0200
@@ -1 +1 @@
-2.16.9
+2.16.10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org