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

Bug#256604: Can't exec "0"



On Sun, Jun 27, 2004 at 08:42:52PM -0700, Joshua Kwan wrote:
> On Sun, Jun 27, 2004 at 08:20:35PM -0700, Joshua Kwan wrote:
> > Version: 1.52
> > Severity: important
> 
> This is really version 2.02, tasksel is in deinstall config-files state
> for version 1.52 on the box I ran reportbug on. Sorry for any confusion
> caused.
> 
> Oh and it's on Architecture: sparc, but as this is a perl script I don't
> think it matters much.

It looks like an extra call to system: it's trying to execute the
exit status of aptitude.  I believe the attached patch should fix
it.

-- 
Matt Kraai            kraai@ftbfs.org            http://ftbfs.org/
Index: tasksel/tasksel.pl
===================================================================
--- tasksel/tasksel.pl	(revision 606)
+++ tasksel/tasksel.pl	(working copy)
@@ -249,7 +249,7 @@
 		if (@aptitude_install) {
 			warning gettext("ignoring other selected packages in favour of manual package selection");
 		}
-		my $ret=system(system "aptitude") >> 8;
+		my $ret=system("aptitude") >> 8;
 		if ($ret != 0) {
 			error gettext("aptitude failed");
 		}

Reply to: