Hello community,

here is the log from the commit of package issue-generator for openSUSE:Factory 
checked in at 2018-05-22 16:58:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/issue-generator (Old)
 and      /work/SRC/openSUSE:Factory/.issue-generator.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "issue-generator"

Tue May 22 16:58:16 2018 rev:9 rq:610247 version:1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/issue-generator/issue-generator.changes  
2018-02-25 11:33:14.694481128 +0100
+++ /work/SRC/openSUSE:Factory/.issue-generator.new/issue-generator.changes     
2018-05-22 16:58:19.516165617 +0200
@@ -1,0 +2,7 @@
+Fri May 18 10:57:45 CEST 2018 - ku...@suse.de
+
+- Update to version 1.5
+  - don't replace issue file or reload agetty if there were no
+    changes (found due to [bsc#1085196]).
+
+-------------------------------------------------------------------

Old:
----
  issue-generator-1.4.tar.bz2

New:
----
  issue-generator-1.5.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ issue-generator.spec ++++++
--- /var/tmp/diff_new_pack.1IkGcd/_old  2018-05-22 16:58:20.064145679 +0200
+++ /var/tmp/diff_new_pack.1IkGcd/_new  2018-05-22 16:58:20.064145679 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           issue-generator
-Version:        1.4
+Version:        1.5
 Release:        0
 Summary:        Generates an issue files from different snippets
 License:        GPL-2.0-or-later

++++++ issue-generator-1.4.tar.bz2 -> issue-generator-1.5.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/issue-generator-1.4/NEWS new/issue-generator-1.5/NEWS
--- old/issue-generator-1.4/NEWS        2018-02-07 15:45:07.000000000 +0100
+++ new/issue-generator-1.5/NEWS        2018-05-18 10:56:53.000000000 +0200
@@ -2,6 +2,9 @@
 
 Copyright (C) 2016-2018 Thorsten Kukuk
 
+Version 1.5
+* Don't replace /run/issue or reload agetty if there were no changes
+
 Version 1.4
 * Don't print error if there is no agetty
 * Adjust parsing of ssh-keygen output
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/issue-generator-1.4/configure 
new/issue-generator-1.5/configure
--- old/issue-generator-1.4/configure   2018-02-07 15:45:17.000000000 +0100
+++ new/issue-generator-1.5/configure   2018-05-18 11:00:31.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for issue-generator 1.4.
+# Generated by GNU Autoconf 2.69 for issue-generator 1.5.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -576,8 +576,8 @@
 # Identity of this package.
 PACKAGE_NAME='issue-generator'
 PACKAGE_TARNAME='issue-generator'
-PACKAGE_VERSION='1.4'
-PACKAGE_STRING='issue-generator 1.4'
+PACKAGE_VERSION='1.5'
+PACKAGE_STRING='issue-generator 1.5'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1210,7 +1210,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 issue-generator 1.4 to adapt to many kinds of systems.
+\`configure' configures issue-generator 1.5 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1276,7 +1276,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of issue-generator 1.4:";;
+     short | recursive ) echo "Configuration of issue-generator 1.5:";;
    esac
   cat <<\_ACEOF
 
@@ -1356,7 +1356,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-issue-generator configure 1.4
+issue-generator configure 1.5
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1373,7 +1373,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by issue-generator $as_me 1.4, which was
+It was created by issue-generator $as_me 1.5, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2236,7 +2236,7 @@
 
 # Define the identity of the package.
  PACKAGE='issue-generator'
- VERSION='1.4'
+ VERSION='1.5'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -3093,7 +3093,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by issue-generator $as_me 1.4, which was
+This file was extended by issue-generator $as_me 1.5, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3146,7 +3146,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-issue-generator config.status 1.4
+issue-generator config.status 1.5
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/issue-generator-1.4/configure.ac 
new/issue-generator-1.5/configure.ac
--- old/issue-generator-1.4/configure.ac        2018-02-07 15:41:24.000000000 
+0100
+++ new/issue-generator-1.5/configure.ac        2018-05-18 10:52:10.000000000 
+0200
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT(issue-generator, 1.4)
+AC_INIT(issue-generator, 1.5)
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([sbin/issue-generator.in])
 AC_PREFIX_DEFAULT(/usr)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/issue-generator-1.4/sbin/issue-generator.in 
new/issue-generator-1.5/sbin/issue-generator.in
--- old/issue-generator-1.4/sbin/issue-generator.in     2018-02-07 
15:43:44.000000000 +0100
+++ new/issue-generator-1.5/sbin/issue-generator.in     2018-05-18 
10:50:06.000000000 +0200
@@ -107,5 +107,25 @@
 done
 
 find_files
-generate_issue > ${PREFIX}/run/issue
-[ -x /usr/sbin/agetty ] && /usr/sbin/agetty --reload > /dev/null || :
+# We should only create a new /run/issue file, if something has
+# really changed. And reload only in this case
+BACKUPFILE=`mktemp -q ${PREFIX}/run/issue.XXXXXXXXXX`
+if [ $? -ne 0 ]; then
+    echo "issue-generator: Can't create temp file..."
+    # Safe fallback: generate new file and reload
+    generate_issue > ${PREFIX}/run/issue
+    RELOAD=1
+else
+    generate_issue > ${BACKUPFILE}
+    cmp -s ${BACKUPFILE} ${PREFIX}/run/issue
+    if [ $? -ne 0 ]; then
+       mv ${BACKUPFILE} ${PREFIX}/run/issue
+       RELOAD=1
+    else
+       rm -f ${BACKUPFILE}
+       RELOAD=0
+    fi
+fi
+if [ ${RELOAD} -eq 1 ]; then
+    [ -x /usr/sbin/agetty ] && /usr/sbin/agetty --reload > /dev/null || :
+fi


Reply via email to