Hello community,

here is the log from the commit of package perl-Config-Crontab for 
openSUSE:Factory checked in at 2017-02-16 16:47:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Config-Crontab (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Config-Crontab.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Config-Crontab"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Config-Crontab/perl-Config-Crontab.changes  
2016-07-03 12:17:47.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Config-Crontab.new/perl-Config-Crontab.changes 
    2017-02-16 16:47:10.491876347 +0100
@@ -1,0 +2,14 @@
+Mon Feb 13 11:25:55 UTC 2017 - [email protected]
+
+- updated to 1.42
+   see /usr/share/doc/packages/perl-Config-Crontab/Changes
+
+  Release 1.42
+  ----------------------------
+  commit 337927a0840a7d3572b31c9c31c2911463e6bbc4
+  Author: Felipe Gasper <[email protected]>
+  Date:   Fri Jan 6 15:39:46 2017 -0500
+  
+      Use lexical filehandles rather than barewords 
(https://github.com/FGasper)
+
+-------------------------------------------------------------------

Old:
----
  Config-Crontab-1.41.tar.gz

New:
----
  Config-Crontab-1.42.tar.gz

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

Other differences:
------------------
++++++ perl-Config-Crontab.spec ++++++
--- /var/tmp/diff_new_pack.Zdykov/_old  2017-02-16 16:47:10.867822963 +0100
+++ /var/tmp/diff_new_pack.Zdykov/_new  2017-02-16 16:47:10.867822963 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Config-Crontab
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX 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,14 +17,14 @@
 
 
 Name:           perl-Config-Crontab
-Version:        1.41
+Version:        1.42
 Release:        0
 %define cpan_name Config-Crontab
 Summary:        Read/Write Vixie compatible crontab(5) files
 License:        GPL-1.0+ or Artistic-1.0
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Config-Crontab/
-Source0:        
http://www.cpan.org/authors/id/S/SC/SCOTTW/%{cpan_name}-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/authors/id/S/SC/SCOTTW/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ Config-Crontab-1.41.tar.gz -> Config-Crontab-1.42.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-Crontab-1.41/Changes 
new/Config-Crontab-1.42/Changes
--- old/Config-Crontab-1.41/Changes     2016-05-27 03:01:01.000000000 +0200
+++ new/Config-Crontab-1.42/Changes     2017-01-12 18:17:48.000000000 +0100
@@ -1,5 +1,13 @@
 Revision history for Perl extension Config::Crontab.
 
+Release 1.42
+----------------------------
+commit 337927a0840a7d3572b31c9c31c2911463e6bbc4
+Author: Felipe Gasper <[email protected]>
+Date:   Fri Jan 6 15:39:46 2017 -0500
+
+    Use lexical filehandles rather than barewords (https://github.com/FGasper)
+
 Release 1.41
 ----------------------------
 commit 5ab21cf7b653915d792e76935606bf24462a11fb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-Crontab-1.41/Crontab.pm 
new/Config-Crontab-1.42/Crontab.pm
--- old/Config-Crontab-1.41/Crontab.pm  2016-05-27 02:59:47.000000000 +0200
+++ new/Config-Crontab-1.42/Crontab.pm  2017-01-12 18:11:17.000000000 +0100
@@ -39,7 +39,7 @@
 use Fcntl;
 use File::Temp qw(:POSIX);
 
-our $VERSION = '1.41';
+our $VERSION = '1.42';
 
 sub init {
     my $self = shift;
@@ -86,9 +86,11 @@
        $self->file('/etc/crontab');
     }
 
+    my $fh;
+
     ## parse the file accordingly
     if( $self->file ) {
-       open FILE, $self->file
+       open $fh, $self->file
          or do {
              $self->error($!);
              if( $self->strict ) {
@@ -108,7 +110,7 @@
                 $crontab_cmd = "crontab -u " . $self->owner . " -l 
2>/dev/null|";
             }
        }
-       open FILE, $crontab_cmd
+       open $fh, $crontab_cmd
          or do {
              $self->error($!);
              if( $self->strict ) {
@@ -141,13 +143,13 @@
        }
 
        local $_;
-       while( <FILE> ) {
+       while( <$fh> ) {
            chomp;
            $self->last( new Config::Crontab::Block( -system => $self->system,
                                                     -data   => $_ ) );
        }
     }
-    close FILE;
+    close $fh;
 }
 
 ## this is needed for Config::Crontab::Container class methods
@@ -283,19 +285,19 @@
     }
 
     if( $self->file ) {
-       open CT, ">" . $self->file
+       open my $ct, ">" . $self->file
          or croak "Could not open " . $self->file . ": $!\n";
-       print CT $self->dump;
-       close CT;
+       print {$ct} $self->dump;
+       close $ct;
     }
 
     ## use a temporary filename
     else {
        my $tmpfile;
        do { $tmpfile = tmpnam() }
-         until sysopen(CT, $tmpfile, O_RDWR|O_CREAT|O_EXCL);
-       print CT $self->dump;
-       close CT;
+         until sysopen(my $ct, $tmpfile, O_RDWR|O_CREAT|O_EXCL);
+       print {$ct} $self->dump;
+       close $ct;
 
        my $crontab;
        if( my $owner = $self->owner ) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-Crontab-1.41/META.json 
new/Config-Crontab-1.42/META.json
--- old/Config-Crontab-1.41/META.json   2016-05-27 03:05:29.000000000 +0200
+++ new/Config-Crontab-1.42/META.json   2017-01-12 18:18:14.000000000 +0100
@@ -35,5 +35,5 @@
       }
    },
    "release_status" : "stable",
-   "version" : "1.41"
+   "version" : "1.42"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-Crontab-1.41/META.yml 
new/Config-Crontab-1.42/META.yml
--- old/Config-Crontab-1.41/META.yml    2016-05-27 03:05:28.000000000 +0200
+++ new/Config-Crontab-1.42/META.yml    2017-01-12 18:18:13.000000000 +0100
@@ -18,4 +18,4 @@
     - t
     - inc
 requires: {}
-version: 1.41
+version: 1.42
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-Crontab-1.41/README 
new/Config-Crontab-1.42/README
--- old/Config-Crontab-1.41/README      2016-05-27 03:01:13.000000000 +0200
+++ new/Config-Crontab-1.42/README      2017-01-12 18:12:18.000000000 +0100
@@ -1,5 +1,5 @@
-Config/Crontab version 1.41
-===========================
+Config/Crontab
+==============
 
 Config::Crontab reads and writes (and pretty-prints) your crontab(5)
 files. It is compatible with Vixie-style crontabs (and all subsets,


Reply via email to