[libnet-appliance-session-perl] 07/08: Add a patch to fix a syntax error around an unimported variable.

gregor herrmann gregoa at debian.org
Tue Jan 2 18:46:34 UTC 2018


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libnet-appliance-session-perl.

commit fa2703107c2792ffdf46ac8416fc478f3ef57bb6
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Jan 2 19:44:28 2018 +0100

    Add a patch to fix a syntax error around an unimported variable.
    
    Thanks: autopkgtest-pkg-perl.
---
 debian/patches/VERSION.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/VERSION.patch b/debian/patches/VERSION.patch
new file mode 100644
index 0000000..d4aa646
--- /dev/null
+++ b/debian/patches/VERSION.patch
@@ -0,0 +1,29 @@
+Description: fix syntax error with $VERSION
+ Variable "$VERSION" is not imported at /usr/share/perl5/Net/Appliance/Session/Scripting.pm line 22.
+ Variable "$VERSION" is not imported at /usr/share/perl5/Net/Appliance/Session/Scripting.pm line 105.
+Origin: vendor
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2018-01-02
+Forwarded: https://github.com/ollyg/Net-Appliance-Session/pull/23
+Bug: https://github.com/ollyg/Net-Appliance-Session/pull/23
+
+--- a/lib/Net/Appliance/Session/Scripting.pm
++++ b/lib/Net/Appliance/Session/Scripting.pm
+@@ -19,7 +19,7 @@
+ use Net::Appliance::Session;
+ 
+ my $banner = colored ['blue'],
+-  "Net Appliance Session scripting - v$VERSION - © 2012-2017 by Oliver Gorwits\n";
++  sprintf "Net Appliance Session scripting - v%s - © 2012-2017 by Oliver Gorwits\n", $Net::Appliance::Session::Scripting::VERSION;
+ 
+ my %options = (cloginrc_opts => {});
+ my $exit_status = 0;
+@@ -101,7 +101,7 @@
+     bailout() if exists $options{help};
+ 
+     if (exists $options{version}) {
+-        print "nas version $VERSION\n";
++        printf "nas version %s\n", $Net::Appliance::Session::Scripting::VERSION;
+         exit(0);
+     }
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..633fed8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+VERSION.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-appliance-session-perl.git



More information about the Pkg-perl-cvs-commits mailing list