[PATCH] fixes (was: Re: Gtk2::Recent 0.031 (unstable))



Emmanuele Bassi <ebassi gmail com> writes:

The package can be retrieved at:
 http://devel.emmanuelebassi.net/software/Gtk2-Recent-0.031.tar.gz

- s/return/exit/
- fix ARGV count checking

--- /usr/share/doc/perl-Gtk2-Recent-0.031/populate-recent.pl    2005-01-27 22:39:06.000000000 +0100
+++ /tmp/populate-recent.pl     2005-02-08 18:25:49.293378128 +0100
@@ -5,11 +5,11 @@
 use Gnome2::VFS '-init';
 use Gtk2::Recent;
 
-if ($#ARGV < 2) {
+if ($#ARGV < 1) {
        print STDERR "Usage:\n";
        print STDERR "$0 --add <URI>\n";
        print STDERR "$0 --delete <URI>\n";
-       return 1;
+       exit 1;
 }
 
 my $option = $ARGV[0];
@@ -27,4 +27,4 @@
        $model->delete($file_uri);
 }
 
-return 0;
+exit 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]