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

Re: Bug in dftp: ignoring more files.



I fixed the section problem in dftp, but it meant breaking all the
section support.  Note that this is an ugly hack, but it seems to
work.  dftp now shows you all the files on the site.

--- dftp-1.4	Wed Mar  6 19:50:56 1996
+++ dftp-nosection-1.4	Tue Apr  2 01:31:38 1996
@@ -814,26 +814,27 @@
 	# Sort directory by section, excluding any unwanted ones
 	#
 	touch $pkgdesc
-	qecho "Sorting packages by section..."
-	set sections = `grep -i section: $tmpdesc | sed -e 's/[Ss]ection: //g' | sort -u`
+	#qecho "Sorting packages by section..."
+	#set sections = `grep -i section: $tmpdesc | sed -e 's/[Ss]ection: //g' | sort -u`
+	set section = foo
 	vecho -n "Packages available in sections:"
-	foreach section ($sections)
-		if ("`echo $exclude | grep $section`" == "") then
+	#foreach section ($sections)
+		#if ("`echo $exclude | grep $section`" == "") then
 			vecho -n " $section"
 			sed -n \
 				-e	'/^..*$/ H'						\
 				-e	'/^$/ {'						\
 				-e	'	x'							\
-				-e	"	/[Ss]ection: ${section}/ {"	\
+				-e	"	/[Ff]ilename:/ {"	\
 				-e	'		p'						\
 				-e	'	}'							\
 				-e	'}'								\
 			$tmpdesc >>$pkgdesc
 			echo ""  >>$pkgdesc
-		else
-			vecho -n " ($section)"
-		endif
-	end
+		#else
+		#	vecho -n " ($section)"
+		#endif
+	#end
 	vecho " "
 
 	#




Reply to: