The following commit has been merged in the master branch:
commit b736fc0984dc7109a05035f96b58353ffa6fc118
Author: Guillem Jover <[email protected]>
Date:   Wed Aug 8 04:35:30 2012 +0200

    changelog-debian: Always use Dpkg::Changelog::Debian->load()
    
    The Storable::Interface supports opening standard input transparently
    whenever '-' is passed as a filename.

diff --git a/scripts/changelog/debian.pl b/scripts/changelog/debian.pl
index d1ead9c..e17e9fb 100755
--- a/scripts/changelog/debian.pl
+++ b/scripts/changelog/debian.pl
@@ -136,13 +136,8 @@ my $range = {
 
 my $changes = Dpkg::Changelog::Debian->new(reportfile => $label, range => 
$range);
 
-if ($file eq '-') {
-    $changes->parse(\*STDIN, _g('<standard input>'))
-       or error(_g('fatal error occurred while parsing input'));
-} else {
-    $changes->load($file)
-       or error(_g('fatal error occurred while parsing %s'), $file);
-}
+$changes->load($file)
+    or error(_g('fatal error occurred while parsing %s'), $file);
 
 eval qq{
     my \$output = \$changes->$format(\$range);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to