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

Bug#279085: marked as done (tasksel: Support executable .desc scripts)

Your message dated Thu, 12 Jul 2012 16:51:30 -0600
with message-id <20120712225130.GI5755@mykerinos.kheops.frmug.org>
and subject line No more .desc files...
has caused the Debian Bug report #279085,
regarding tasksel: Support executable .desc scripts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

279085: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279085
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: tasksel
Version: 2.14
Severity: wishlist
Tags: patch


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.



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;

--- End Message ---
--- Begin Message ---
Version: 3.00

Since 3.00 there are no more .desc files, so no mor eneed to support
executable ones..:-)


Attachment: signature.asc
Description: Digital signature

--- End Message ---

Reply to: