package apt-cacher
tags 480004 pending
thanks

David

I have just queued a fix for this.

Patch is below, perhaps you could check it works for you.

Mark

diff --git a/apt-cacher-report.pl b/apt-cacher-report.pl
index 5ece3ce..311b0be 100755
--- a/apt-cacher-report.pl
+++ b/apt-cacher-report.pl
@@ -19,6 +19,29 @@ my $configfile = '/etc/apt-cacher/apt-cacher.conf';
 
# Needs to be global for &setup_ownership
our $cfg;
+
+while(scalar (@ARGV)) {
+    my $arg=shift(@ARGV);
+    if($arg eq '-c') {
+       $configfile=shift(@ARGV) || die '-c option requires an
argument';
+       die "$configfile not a file" if ! -f $configfile;
+       die "$configfile unreadable" if ! -r $configfile;
+    }
+    elsif($arg eq '-h' || $arg eq '--help') {
+       print <<EOM;
+USAGE: $0 <options>
+Options:
+
+-c configfile   Custom config file (default: $configfile)
+-h|--help      Print this help message
+EOM
+       exit(0);
+    }
+    else {
+       die "Unknown parameter $arg\n";
+    }
+}
+
eval {
     $cfg = read_config($configfile);
      };




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

Reply via email to