Package: tasksel
Version: 2.14
Severity: wishlist
Tags: patch

Hi!

Here is a little patch to support executable .desc files. This way one
can  dynamically  create the  list  of  available tasks,  for  example
consulting an alternative source of information (e.g. debtags).

I'd use such trick for the A/DeMuDi CDD.

Cheers,

Free

Index: tasksel.pl
===================================================================
--- tasksel.pl  (revision 816)
+++ tasksel.pl  (working copy)
@@ -32,7 +32,12 @@
 sub read_task_desc {
        my $desc=shift;
        my @ret;
-       open (DESC, "<$desc") || die "read $desc\: $!";
+       if (-x $desc) { 
+               open (DESC, "$desc|");
+       }
+       else {
+               open (DESC, "<$desc") || die "read $desc\: $!";
+       }
        local $/="\n\n";
        while (<DESC>) {
                my %data;



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

Reply via email to