diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:19:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:19:02 +0000 |
commit | 0e345d89cd71bcdf5be0252ef6cadc6d76dabe3d (patch) | |
tree | 0f5ea7071b241b13bd624d615334876f3aacc37f /debian/patches/queryresume.pl-use-posix.diff | |
parent | Adding upstream version 20231031. (diff) | |
download | irssi-scripts-debian.tar.xz irssi-scripts-debian.zip |
Adding debian version 20231031.debian/20231031debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/queryresume.pl-use-posix.diff')
-rw-r--r-- | debian/patches/queryresume.pl-use-posix.diff | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/queryresume.pl-use-posix.diff b/debian/patches/queryresume.pl-use-posix.diff new file mode 100644 index 0000000..bbe7eb6 --- /dev/null +++ b/debian/patches/queryresume.pl-use-posix.diff @@ -0,0 +1,31 @@ +Description: "queryresume.pl: Use POSIX.pm" +Forwarded: not-needed +Author: Christoph Berg <myon@debian.org> +Last-Update: 2016-02-29 +--- a/scripts/queryresume.pl ++++ b/scripts/queryresume.pl +@@ -10,12 +10,12 @@ $VERSION = '2003021201'; + name => 'QueryResume', + description => 'restores the last lines of a query on re-creation', + license => 'GPLv2', +- modules => 'Date::Format File::Glob', ++ modules => 'POSIX File::Glob', + changed => $VERSION, + ); + + use Irssi 20020324; +-use Date::Format; ++use POSIX qw(strftime); + use File::Glob ':glob'; + + sub draw_box ($$$$) { +@@ -41,8 +41,7 @@ sub sig_window_item_new ($$) { + $filename =~ s/\$tag\b|\$\{tag\}|\$1\b|\$\{1\}/$servertag/g; + $filename =~ s/\$0\b|\$\{0\}/$name/g; + my @lt = localtime(time); +- my $zone; +- $filename = strftime($filename, @lt, $zone); ++ $filename = strftime($filename, @lt); + $filename =~ s/(\[|\])/\\$1/g; + local *F; + open(F, "<", bsd_glob($filename)); |