Mailinglist Archive: opensuse-commit (1903 mails)

< Previous Next >
commit perl-File-Slurp for openSUSE:Factory
Hello community,

here is the log from the commit of package perl-File-Slurp for openSUSE:Factory
checked in at 2019-04-10 23:09:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-File-Slurp (Old)
and /work/SRC/openSUSE:Factory/.perl-File-Slurp.new.27019 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-File-Slurp"

Wed Apr 10 23:09:16 2019 rev:24 rq:692032 version:9999.27

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-File-Slurp/perl-File-Slurp.changes
2019-02-25 17:46:05.198889530 +0100
+++
/work/SRC/openSUSE:Factory/.perl-File-Slurp.new.27019/perl-File-Slurp.changes
2019-04-10 23:09:18.091844802 +0200
@@ -1,0 +2,12 @@
+Sat Apr 6 05:09:09 UTC 2019 - Stephan Kulow <coolo@xxxxxxxx>
+
+- updated to 9999.27
+ see /usr/share/doc/packages/perl-File-Slurp/Changes
+
+ 9999.27 2019-04-05
+ - Update the documentation on the atomic write. We no longer use the pid
+ and I neglected to update the documentation as such. (RT #129029)
+ - Localize $^W to stop File::Temp from warning the user when the -w flag
+ is on while we're grabbing a temporary file name. (RT #129029)
+
+-------------------------------------------------------------------

Old:
----
File-Slurp-9999.26.tar.gz

New:
----
File-Slurp-9999.27.tar.gz

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

Other differences:
------------------
++++++ perl-File-Slurp.spec ++++++
--- /var/tmp/diff_new_pack.aVv02Z/_old 2019-04-10 23:09:19.063845906 +0200
+++ /var/tmp/diff_new_pack.aVv02Z/_new 2019-04-10 23:09:19.067845911 +0200
@@ -17,7 +17,7 @@


Name: perl-File-Slurp
-Version: 9999.26
+Version: 9999.27
Release: 0
%define cpan_name File-Slurp
Summary: Perl module for reading/writing/modifying complete files

++++++ File-Slurp-9999.26.tar.gz -> File-Slurp-9999.27.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/File-Slurp-9999.26/Changes
new/File-Slurp-9999.27/Changes
--- old/File-Slurp-9999.26/Changes 2019-02-13 17:13:50.000000000 +0100
+++ new/File-Slurp-9999.27/Changes 2019-04-05 15:16:45.000000000 +0200
@@ -1,5 +1,11 @@
Revision history File::Slurp

+9999.27 2019-04-05
+ - Update the documentation on the atomic write. We no longer use the pid
+ and I neglected to update the documentation as such. (RT #129029)
+ - Localize $^W to stop File::Temp from warning the user when the -w flag
+ is on while we're grabbing a temporary file name. (RT #129029)
+
9999.26 2019-02-13
- Reduce the size of handle.t to prevent failures on systems with limits
set
- Skip all tests in the suite that relied on overriding syswrite to test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/File-Slurp-9999.26/META.json
new/File-Slurp-9999.27/META.json
--- old/File-Slurp-9999.26/META.json 2019-02-13 17:34:02.000000000 +0100
+++ new/File-Slurp-9999.27/META.json 2019-04-05 15:21:08.000000000 +0200
@@ -75,7 +75,7 @@
"web" : "https://github.com/perhunter/slurp";
}
},
- "version" : "9999.26",
+ "version" : "9999.27",
"x_contributors" : [
"Aristotle Pagaltzis <ARISTOTLE@xxxxxxxx>",
"Chase Whitener <capoeirab@xxxxxxxx>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/File-Slurp-9999.26/META.yml
new/File-Slurp-9999.27/META.yml
--- old/File-Slurp-9999.26/META.yml 2019-02-13 17:34:02.000000000 +0100
+++ new/File-Slurp-9999.27/META.yml 2019-04-05 15:21:08.000000000 +0200
@@ -48,7 +48,7 @@
warnings: '0'
resources:
repository: https://github.com/perhunter/slurp.git
-version: '9999.26'
+version: '9999.27'
x_contributors:
- 'Aristotle Pagaltzis <ARISTOTLE@xxxxxxxx>'
- 'Chase Whitener <capoeirab@xxxxxxxx>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/File-Slurp-9999.26/README.md
new/File-Slurp-9999.27/README.md
--- old/File-Slurp-9999.26/README.md 2018-11-08 23:25:56.000000000 +0100
+++ new/File-Slurp-9999.27/README.md 2019-04-05 14:38:56.000000000 +0200
@@ -180,7 +180,7 @@
use File::Slurp qw(prepend_file);
prepend_file('/path/file', $header);
prepend_file('/path/file', \@lines);
- prepend_file('/path/file', { binmode => 'raw:'}, $bin_data);
+ prepend_file('/path/file', { binmode => ':raw'}, $bin_data);

# equivalent to:
use File::Slurp qw(read_file write_file);
@@ -409,11 +409,10 @@

The `atomic` option is a boolean option, defaulted to false (`0`). Setting
this option to true (`1`) will cause the file to be be written to in an
- atomic fashion. A temporary file name is created by appending the pid
- (`$$`) to the file name argument and that file is spewed to. After the
- file is closed it is renamed to the original file name (and `rename` is
- an atomic operation on most OSes). If the program using this were to
- crash in the middle of this, then the file with the pid suffix could
+ atomic fashion. A temporary file name is created using ["tempfile" in
File::Temp](https://metacpan.org/pod/File::Temp#tempfile).
+ After the file is closed it is renamed to the original file name
+ (and `rename` is an atomic operation on most OSes). If the program using
+ this were to crash in the middle of this, then the temporary file could
be left behind.

- binmode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/File-Slurp-9999.26/lib/File/Slurp.pm
new/File-Slurp-9999.27/lib/File/Slurp.pm
--- old/File-Slurp-9999.26/lib/File/Slurp.pm 2019-02-13 17:06:53.000000000
+0100
+++ new/File-Slurp-9999.27/lib/File/Slurp.pm 2019-04-05 15:05:13.000000000
+0200
@@ -3,7 +3,7 @@
use strict;
use warnings ;

-our $VERSION = '9999.26';
+our $VERSION = '9999.27';
$VERSION = eval $VERSION;

use Carp ;
@@ -279,7 +279,10 @@
}
# we must ensure we're using a good temporary filename
(doesn't already
# exist). This is slower, but safer.
- (undef, $file_name) = tempfile('tempXXXXX', DIR =>
$dir, OPEN => 0);
+ {
+ local $^W = 0; # AYFKM
+ (undef, $file_name) = tempfile('tempXXXXX', DIR
=> $dir, OPEN => 0);
+ }
}
$fh = local *FH;
unless (sysopen($fh, $file_name, $mode, $perms)) {
@@ -1020,11 +1023,10 @@

The C<atomic> option is a boolean option, defaulted to false (C<0>). Setting
this option to true (C<1>) will cause the file to be be written to in an
-atomic fashion. A temporary file name is created by appending the pid
-(C<$$>) to the file name argument and that file is spewed to. After the
-file is closed it is renamed to the original file name (and C<rename> is
-an atomic operation on most OSes). If the program using this were to
-crash in the middle of this, then the file with the pid suffix could
+atomic fashion. A temporary file name is created using
L<File::Temp/"tempfile">.
+After the file is closed it is renamed to the original file name
+(and C<rename> is an atomic operation on most OSes). If the program using
+this were to crash in the middle of this, then the temporary file could
be left behind.

=item


< Previous Next >
This Thread
  • No further messages