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

Bug#51479: dpkg-dev: dpkg-scanpackages DIEs if a dangling symlink found



Package: dpkg-dev
Version: 1.6.1
Severity: normal

The script dpkg-scanpackages found in this package does a scan of a
"binarydir" to create the "Packages" file.  I did a partial mirror of
a Debian FTP site, which included some symlinks into "binary-all", but
not the object of the symlinks.

The "find" program called by dpkg-scanpackages returns non-zero status
when this happens, and as a result of line 111, dpkg-scanpackages
terminates abnormally:

   111  $? and die "find exited with $?\n";
 
To me, a dangling symlink should not be seen as an error condition.
Particularly since elsewhere in the script, the failure of "dpkg-deb
-I" is only WARNed about.

My suggested fix is change "die" to "warn" in line 111.  An acceptable
alternative (though I think it overkill) could be to provide a switch
to simply warn about this condition rather than making it fatal.




-- System Information
Debian Release: potato
Kernel Version: Linux riemann 2.2.13 #1 Thu Nov 25 01:27:04 EST 1999 i686 unknown

Versions of the packages dpkg-dev depends on:
ii  cpio            2.4.2-28       GNU cpio -- a program to manage archives of 
ii  make            3.78.1-1.1     The GNU version of the "make" utility.
ii  patch           2.5-2          Apply a diff file to an original
ii  perl-5.004      5.004.05-3     Larry Wall's Practical Extracting and Report
	^^^ (Provides virtual package perl5)


Reply to: