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

Bug#214123: /usr/bin/dpkg-scanpackages: dpkg-scanpackages should also scan udebs



Adam Heath <doogie@debian.org> writes:

> tag 214123 moreinfo
> thanks
> 
> On Sat, 4 Oct 2003, Goswin Brederlow wrote:
> 
> > When adding locally build udebs for the debian-installer to a local
> > mirror dpkg-scnapackages fails to build a correct Packages file.
> 
> Include an example.  Not everyone has access to a set of udebs to test this
> with.  Also, you should *always* include error output, and at least snippets
> of incorrupt output files.

udebs aren't that hard to find :)

wget ftp://ftp.debian.org/debian/pool/main/a/anna/anna_0.035_i386.udeb

There is no error output. In fact there is just no output. To clarify
this, it doesn't fail, it just skips udebs cause you do a find on "*.deb".
It fails to include information about udebs in the output.

As a workaround I copied the dpkg-scanpackages and changed the find
pattern for udebs:

mrvn@dual:~% diff -Nurd =dpkg-scanpackages =dpkg-scanudebs
--- /usr/bin/dpkg-scanpackages  2003-10-04 21:43:17.000000000 +0200
+++ /usr/bin/dpkg-scanudebs     2003-10-04 21:43:10.000000000 +0200
@@ -46,7 +46,7 @@
 }
 
 # The extra slash causes symlinks to be followed.
-open(F,"find $binarydir/ -follow -name '*.deb' -print |")
+open(F,"find $binarydir/ -follow -name '*.udeb' -print |")
     or die "Couldn't open pipe to find: $!\n";
 while (<F>) {
     chomp($fn=$_);


> > It would be nice if dpkg-scanpackages could have an option to scan
> > eigther *.deb, *.udeb or both so one can easily recreate a mirror
> > setup like the official one.
> 
> That's wishlist.

MfG
        Goswin



Reply to: