Hello community, here is the log from the commit of package patch2mail for openSUSE:Factory checked in at Mon Jun 20 11:16:03 CEST 2011.
-------- --- patch2mail/patch2mail.changes 2010-11-23 21:35:57.000000000 +0100 +++ /mounts/work_src_done/STABLE/patch2mail/patch2mail.changes 2011-06-19 17:56:30.000000000 +0200 @@ -1,0 +2,14 @@ +Sun Jun 19 15:48:01 UTC 2011 - [email protected] + +- updated summary to include package updates +- version 1.1 + +------------------------------------------------------------------- +Sun Apr 3 13:37:52 UTC 2011 - [email protected] + +- include note about patches affecting the package manager +- new sysconfig option PATCHES_ONLY - set to "no" to include package + updates in the notification mail +- added handling for package updates in patch2mail and the xslt + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- patch2mail-1.0.tar.bz2 New: ---- patch2mail-1.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ patch2mail.spec ++++++ --- /var/tmp/diff_new_pack.A3Sun3/_old 2011-06-20 11:15:38.000000000 +0200 +++ /var/tmp/diff_new_pack.A3Sun3/_new 2011-06-20 11:15:38.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package patch2mail (Version 1.0) +# spec file for package patch2mail # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ Name: patch2mail -Version: 1.0 +Version: 1.1 Release: 1 # License: GPLv2+ # -Summary: Patch notification via mail +Summary: Patch and package update notification via mail #BuildRequires: bash # Url: http://blog.cboltz.de/plugin/tag/patch2mail @@ -50,7 +50,7 @@ %description patch2mail checks for available updates and sends a mail to root -if any patches are available +if any patches or updated packages (configureable) are available. %prep %setup -q ++++++ patch2mail-1.0.tar.bz2 -> patch2mail-1.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patch2mail-1.0/README new/patch2mail-1.1/README --- old/patch2mail-1.0/README 2009-04-18 11:43:53.000000000 +0200 +++ new/patch2mail-1.1/README 2011-04-03 16:56:01.000000000 +0200 @@ -9,6 +9,10 @@ It comes with the script in /etc/cron.daily and sends the mail to root. (To change the recipient, edit /etc/sysconfig/patch2mail.) +Starting with patch2mail 1.1, the notification mail will also include +package updates. If you want notifications only for patches, set +PATCHES_ONLY="yes" in /etc/sysconfig/patch2mail. + If you want to install this script manually, follow the %install section in patch2mail.spec ;-) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patch2mail-1.0/patch2mail new/patch2mail-1.1/patch2mail --- old/patch2mail-1.0/patch2mail 2009-04-18 11:43:54.000000000 +0200 +++ new/patch2mail-1.1/patch2mail 2011-04-06 23:49:58.000000000 +0200 @@ -4,13 +4,15 @@ tmp="$(mktemp /tmp/updates.XXXXXX)" +params="-t patch -t package" +test "$PATCHES_ONLY" = "yes" && params="-t patch" + /usr/sbin/zypp-refresh-wrapper >/dev/null -LANG=C /usr/bin/zypper --xmlout lu -t patch | xsltproc /usr/share/patch2mail/patch2mail.xsl - > "$tmp" +LANG=C /usr/bin/zypper --xmlout lu $params | xsltproc /usr/share/patch2mail/patch2mail.xsl - > "$tmp" grep "ERROR\|^===" "$tmp" >/dev/null || { rm -f "$tmp" exit 0 # no updates, no errors } grep -v "^__TOTAL__" "$tmp" | mail -s "$(hostname) updates" ${MAILADDRESS} -# echo "*** $(hostname) updates ***"; grep -v "^__TOTAL__" "$tmp" rm -f "$tmp" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patch2mail-1.0/patch2mail.changes new/patch2mail-1.1/patch2mail.changes --- old/patch2mail-1.0/patch2mail.changes 2010-11-23 21:34:39.000000000 +0100 +++ new/patch2mail-1.1/patch2mail.changes 2011-06-19 17:48:49.000000000 +0200 @@ -1,4 +1,18 @@ ------------------------------------------------------------------- +Sun Jun 19 15:48:01 UTC 2011 - [email protected] + +- updated summary to include package updates +- version 1.1 + +------------------------------------------------------------------- +Sun Apr 3 13:37:52 UTC 2011 - [email protected] + +- include note about patches affecting the package manager +- new sysconfig option PATCHES_ONLY - set to "no" to include package + updates in the notification mail +- added handling for package updates in patch2mail and the xslt + +------------------------------------------------------------------- Tue Nov 23 20:11:32 UTC 2010 - [email protected] - version 1.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patch2mail-1.0/patch2mail.spec new/patch2mail-1.1/patch2mail.spec --- old/patch2mail-1.0/patch2mail.spec 2010-11-23 21:20:02.000000000 +0100 +++ new/patch2mail-1.1/patch2mail.spec 2011-06-19 18:00:15.000000000 +0200 @@ -1,11 +1,11 @@ # Name: patch2mail -Version: 1.0 +Version: 1.1 Release: 1 # License: GPLv2+ # -Summary: Patch notification via mail +Summary: Patch and package update notification via mail #BuildRequires: bash # Url: http://blog.cboltz.de/plugin/tag/patch2mail @@ -32,7 +32,7 @@ %description patch2mail checks for available updates and sends a mail to root -if any patches are available +if any patches or updated packages (configureable) are available. %prep %setup -q diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patch2mail-1.0/patch2mail.sysconfig new/patch2mail-1.1/patch2mail.sysconfig --- old/patch2mail-1.0/patch2mail.sysconfig 2009-04-18 11:43:54.000000000 +0200 +++ new/patch2mail-1.1/patch2mail.sysconfig 2011-04-03 16:36:31.000000000 +0200 @@ -7,3 +7,12 @@ # The user or mail address to send update notifications. # MAILADDRESS="root" + +## Type: yesno +## Default: yes +# +# Restrict update list to patches? +# yes: notification mail will only list patches +# no: notification mail will list patches and package updates +PATCHES_ONLY="no" + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patch2mail-1.0/patch2mail.xsl new/patch2mail-1.1/patch2mail.xsl --- old/patch2mail-1.0/patch2mail.xsl 2009-04-18 11:43:54.000000000 +0200 +++ new/patch2mail-1.1/patch2mail.xsl 2011-04-06 23:52:42.000000000 +0200 @@ -64,6 +64,7 @@ </xsl:template> <xsl:template match="update-list/update"> + <xsl:if test="@kind = 'patch'"> <xsl:text> === </xsl:text> <xsl:value-of select="@name" /> @@ -74,7 +75,23 @@ <xsl:text>) === </xsl:text> <xsl:apply-templates /> <xsl:text> </xsl:text> + <xsl:if test="@pkgmanager = 'true'"> + <xsl:text> *** This patch affects the package manager.</xsl:text> + <xsl:text> *** More updates might become available after installing it.</xsl:text> + <xsl:text> </xsl:text> + </xsl:if> +</xsl:if> + +<xsl:if test="@kind = 'package'"> + <xsl:text> === </xsl:text> + <xsl:value-of select="@name" /> + <xsl:text> </xsl:text> + <xsl:value-of select="@edition" /> + <xsl:text> (package) === </xsl:text> + <xsl:apply-templates /> + <xsl:text> </xsl:text> </xsl:if> + </xsl:template> <xsl:template match="update-list/update/summary"> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
