Hello community,

here is the log from the commit of package perl-Bootloader for openSUSE:Factory 
checked in at 2015-01-21 21:51:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Bootloader (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Bootloader.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Bootloader"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Bootloader/perl-Bootloader.changes  
2014-12-19 09:40:20.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Bootloader.new/perl-Bootloader.changes     
2015-01-21 21:52:01.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Jan 19 14:11:14 CET 2015 - snw...@suse.com
+
+- preserve config file permissions (bnc #908664)
+- 0.828
+
+-------------------------------------------------------------------

Old:
----
  perl-Bootloader-0.827.tar.xz

New:
----
  perl-Bootloader-0.828.tar.xz

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

Other differences:
------------------
++++++ perl-Bootloader.spec ++++++
--- /var/tmp/diff_new_pack.9wN5pY/_old  2015-01-21 21:52:01.000000000 +0100
+++ /var/tmp/diff_new_pack.9wN5pY/_new  2015-01-21 21:52:01.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Bootloader
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Bootloader
-Version:        0.827
+Version:        0.828
 Release:        0
 Requires:       coreutils
 Requires:       perl-base = %{perl_version}

++++++ perl-Bootloader-0.827.tar.xz -> perl-Bootloader-0.828.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/perl-Bootloader-0.827/VERSION 
new/perl-Bootloader-0.828/VERSION
--- old/perl-Bootloader-0.827/VERSION   2014-12-08 10:53:53.000000000 +0100
+++ new/perl-Bootloader-0.828/VERSION   2015-01-19 14:10:14.000000000 +0100
@@ -1 +1 @@
-0.827
+0.828
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/perl-Bootloader-0.827/changelog 
new/perl-Bootloader-0.828/changelog
--- old/perl-Bootloader-0.827/changelog 2014-12-08 10:53:53.000000000 +0100
+++ new/perl-Bootloader-0.828/changelog 2015-01-19 14:10:14.000000000 +0100
@@ -1,3 +1,6 @@
+2015-01-19:    0.828
+       - preserve config file permissions (bnc #908664)
+
 2014-12-07:    0.827
        - Add armv7l support for grub2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/perl-Bootloader-0.827/src/Core.pm 
new/perl-Bootloader-0.828/src/Core.pm
--- old/perl-Bootloader-0.827/src/Core.pm       2014-12-08 10:53:53.000000000 
+0100
+++ new/perl-Bootloader-0.828/src/Core.pm       2015-01-19 14:10:14.000000000 
+0100
@@ -1589,8 +1589,17 @@
   foreach my $file (@files) {
     next unless -f "$file.new";
 
-    # backup file only if is exists and previos backup is older than 6 hours
+    # backup file (".old") but don't overwrite backup newer than 6 hours
     if(-f $file) {
+      # preserve file permissions (bnc #908664)
+      my $p = (stat $file)[2];
+
+      if(defined $p) {
+        $p &= 07777;
+        chmod $p, "$file.new";
+        $self->milestone("adjusting permissions of $file.new to " . 
sprintf("0%o", $p));
+      }
+
       if(-f "$file.old") {
         my $mtime = time - (stat "$file.old")[9];
         if($mtime > 6 * 3600) {

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to