Package: debarchiver
Version: 0.4.3
Severity: wishlist
Tags: patch

Hi, 

I would be really happy if I can set the configfile debarchiver should use
from the command line. The following (simple patche) make this happen.

--- debarchiver-0.4.2/src/debarchiver.pl        2005-09-16 21:53:14.000000000 
+0200
+++ debarchiver.pl      2005-10-03 14:42:07.000000000 +0200
@@ -136,6 +136,9 @@
        elsif (/^--ql$/ || /^--quit-level$/) {
            setQuitLevel(shift @ARGS1);
        }
+       elsif (/^-c$/ || /^--config$/) {
+               $configfile = shift @ARGS1;
+       }
        elsif (/^-i$/ || /^--input$/ || /^--indir$/ || /^--inputdir$/) {
            $inputdir = shift @ARGS1;
            $inputdir =~ s/\/$//;
@@ -170,6 +173,13 @@
     }
 }
 
+if ($configfile && -f $configfile) {
+       my $t = do $configfile;
+       unless ($t) {
+       pdebug(4, "Loading config file $configfile:\n\t$!\n\t$@");
+       }
+}
+
 ###############################################################################
 ######################### INPUT CONFIG ########################################
 ###############################################################################


Best wishes 
Alex



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.2
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages debarchiver depends on:
ii  adduser                       3.67.2     Add and remove users and groups
ii  apt-utils                     0.6.41     APT utility programs
ii  dpkg-dev                      1.13.11    package building tools for Debian
ii  opalmod                       0.1.13     A set of Perl modules for various 

debarchiver recommends no packages.

-- no debconf information


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

Reply via email to