]> git.pld-linux.org Git - packages/pisg.git/commitdiff
- some hacks to be able to use modules outside pisg program
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 Dec 2008 23:21:29 +0000 (23:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pisg-hacks.patch -> 1.1

pisg-hacks.patch [new file with mode: 0644]

diff --git a/pisg-hacks.patch b/pisg-hacks.patch
new file mode 100644 (file)
index 0000000..c427281
--- /dev/null
@@ -0,0 +1,39 @@
+--- pisg-0.72/modules/Pisg.pm~ 2008-12-18 23:53:44.000000000 +0200
++++ pisg-0.72/modules/Pisg.pm  2008-12-19 00:06:19.780514406 +0200
+@@ -29,7 +29,7 @@
+     my $self = {
+         override_cfg => $args{override_cfg},
+         use_configfile => $args{use_configfile},
+-        search_path => $args{search_path},
++        search_path => $args{search_path} || '/usr/share/pisg',
+         chans => [],
+         users => {},
+         cfg => {},
+@@ -217,7 +217,7 @@
+         statsdump => '',           # Debug option
+         modules_dir => '',         # set in get_cmdline_options
+-        cchannels => '',           # set in get_cmdline_options
++        cchannels => [],           # set in get_cmdline_options
+         version => "0.72",
+     };
+--- pisg-0.72/modules/Pisg/Parser/Logfile.pm~  2008-12-19 00:25:49.000000000 +0200
++++ pisg-0.72/modules/Pisg/Parser/Logfile.pm   2008-12-19 00:25:51.084291572 +0200
+@@ -69,7 +69,6 @@
+     my $format = shift;
+     $self->{parser} = undef;
+     eval <<_END;
+-use lib '$self->{cfg}->{modules_dir}';
+ use Pisg::Parser::Format::$format;
+ \$self->{parser} = new Pisg::Parser::Format::$format(
+     cfg => \$self->{cfg},
+@@ -168,6 +168,8 @@
+         close C;
+     }
++      $self->{cfg}->{lines} = \%lines if $self->{cfg}->{store_lines};
++
+     $self->_pick_random_lines(\%stats, \%lines);
+     _uniquify_nicks(\%stats);
This page took 0.073681 seconds and 4 git commands to generate.