Hello community,

here is the log from the commit of package moreutils for openSUSE:Factory 
checked in at 2019-04-19 18:39:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/moreutils (Old)
 and      /work/SRC/openSUSE:Factory/.moreutils.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "moreutils"

Fri Apr 19 18:39:45 2019 rev:6 rq:695942 version:0.63

Changes:
--------
--- /work/SRC/openSUSE:Factory/moreutils/moreutils.changes      2018-04-25 
10:02:18.680729922 +0200
+++ /work/SRC/openSUSE:Factory/.moreutils.new.5536/moreutils.changes    
2019-04-19 18:39:50.147295419 +0200
@@ -1,0 +2,11 @@
+Fri Apr 19 09:38:08 UTC 2019 - Luigi Baldoni <[email protected]>
+
+- Update to version 0.63
+  * vipe: Clean up temp file even when it exits with an error.
+    Thanks, Stig Palmquist.
+  * ts: Fix ts -m %.s to not output negative microseconds.
+    Thanks, Dima Kogan
+  * sponge: Fix bug in -a mode that doubled original content of
+    file when the temp file is located on a different filesystem.
+
+-------------------------------------------------------------------

Old:
----
  moreutils-0.62.tar.gz

New:
----
  moreutils-0.63.tar.gz

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

Other differences:
------------------
++++++ moreutils.spec ++++++
--- /var/tmp/diff_new_pack.J3Ktn7/_old  2019-04-19 18:39:51.415297030 +0200
+++ /var/tmp/diff_new_pack.J3Ktn7/_new  2019-04-19 18:39:51.415297030 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package moreutils
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           moreutils
-Version:        0.62
+Version:        0.63
 Release:        0
 Summary:        Additional Unix Utilities
 License:        GPL-2.0+ and GPL-2.0 and MIT

++++++ moreutils-0.62.tar.gz -> moreutils-0.63.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.62/debian/changelog 
new/moreutils-0.63/debian/changelog
--- old/moreutils-0.62/debian/changelog 2017-12-31 17:02:11.000000000 +0100
+++ new/moreutils-0.63/debian/changelog 2019-01-09 16:14:34.000000000 +0100
@@ -1,3 +1,14 @@
+moreutils (0.63) unstable; urgency=medium
+
+  * vipe: Clean up temp file even when it exits with an error.
+    Thanks, Stig Palmquist.
+  * ts: Fix ts -m %.s to not output negative microseconds.
+    Thanks, Dima Kogan
+  * sponge: Fix bug in -a mode that doubled original content of file when
+    the temp file is located on a different filesystem.
+
+ -- Joey Hess <[email protected]>  Wed, 09 Jan 2019 11:14:01 -0400
+
 moreutils (0.62) unstable; urgency=medium
 
   * ts: Add -m option to use monotonic clock.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.62/sponge.c new/moreutils-0.63/sponge.c
--- old/moreutils-0.62/sponge.c 2017-12-31 17:02:11.000000000 +0100
+++ new/moreutils-0.63/sponge.c 2019-01-09 16:14:34.000000000 +0100
@@ -372,7 +372,7 @@
                }
                else {  
                        /* Fall back to slow copy. */
-                       outfile = fopen(outname, append ? "a" : "w");
+                       outfile = fopen(outname, "w");
                        if (!outfile) {
                                perror("error opening output file");
                                exit(1);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.62/ts new/moreutils-0.63/ts
--- old/moreutils-0.62/ts       2017-12-31 17:02:11.000000000 +0100
+++ new/moreutils-0.63/ts       2019-01-09 16:14:34.000000000 +0100
@@ -6,7 +6,7 @@
 
 =head1 SYNOPSIS
 
-ts [-r] [-i | -s] [format]
+ts [-r] [-i | -s] [-m] [format]
 
 =head1 DESCRIPTION
 
@@ -28,11 +28,11 @@
 If both -r and a format is passed, the existing timestamps are
 converted to the specified format.
 
-If the -i or -s switch is passed, ts timestamps incrementally instead. In case
-of -i, every timestamp will be the time elapsed since the last timestamp. In
-case of -s, the time elapsed since start of the program is used.
-The default format changes to "%H:%M:%S", and "%.S" and "%.s" can be used
-as well.
+If the -i or -s switch is passed, ts reports incremental timestamps instead of
+absolute ones. The default format changes to "%H:%M:%S", and "%.S" and "%.s" 
can
+be used as well. In case of -i, every timestamp will be the time elapsed since
+the last timestamp. In case of -s, the time elapsed since start of the program
+is used.
 
 The -m switch makes the system's monotonic clock be used.
 
@@ -100,7 +100,7 @@
        my $raw_time = Time::HiRes::clock_gettime(CLOCK_MONOTONIC);
        $lastseconds = time;
        $lastmicroseconds = int(1000000 * ($raw_time - int($raw_time)));
-       $monodelta = time - int($raw_time);
+       $monodelta = $lastseconds - int($raw_time);
 }
 elsif ($hires) {
        ($lastseconds, $lastmicroseconds) = Time::HiRes::gettimeofday();
@@ -118,8 +118,9 @@
                        my $microseconds;
                        if ($mono) {
                                my $raw_time =
-                                       
Time::HiRes::clock_gettime(CLOCK_MONOTONIC);
-                               $seconds = $monodelta + int($raw_time);
+                                       
Time::HiRes::clock_gettime(CLOCK_MONOTONIC) +
+                                       $monodelta;
+                               $seconds = int($raw_time);
                                $microseconds = int(1000000 * ($raw_time - 
$seconds));
                        }
                        else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.62/vipe new/moreutils-0.63/vipe
--- old/moreutils-0.62/vipe     2017-12-31 17:02:11.000000000 +0100
+++ new/moreutils-0.63/vipe     2019-01-09 16:14:34.000000000 +0100
@@ -43,7 +43,7 @@
 
 $/=undef;
 
-my ($fh, $tmp)=tempfile();
+my ($fh, $tmp)=tempfile(UNLINK => 1);
 die "cannot create tempfile" unless $fh;
 print ($fh <STDIN>) || die "write temp: $!";
 close $fh;
@@ -71,4 +71,3 @@
 open (IN, $tmp) || die "$0: cannot read $tmp: $!\n";
 print (OUT <IN>) || die "write failure: $!";
 close IN;
-unlink($tmp);


Reply via email to