Package: devscripts
Version: 2.15.8
Severity: normal
Tags: patch
File: /usr/bin/build-rdeps
User: [email protected]
Usertag: build-rdeps

Hi,

apt 1.1 in experimental now sets the permissions of the apt partial
directory (/var/lib/apt/lists/partial) to 700 which causes build-rdeps
to output this warning every time it is used:

> Can't cd to (/var/lib/apt/lists/) partial: Permission denied
>  at /usr/bin/build-rdeps line 310

Since that directory only contains partial source lists, build-rdeps
should simply not search that directory (or any subdirectories in
/var/lib/apt/lists).

I've atttached a patch which uses glob instead of find so that
subdirectories are not searched.

Thanks,
James
diff --git a/scripts/build-rdeps.pl b/scripts/build-rdeps.pl
index dbbb98f..68a576a 100755
--- a/scripts/build-rdeps.pl
+++ b/scripts/build-rdeps.pl
@@ -91,7 +91,6 @@ and run apt-get update afterwards or use the update option of this tool.
 use warnings;
 use strict;
 use File::Basename;
-use File::Find;
 use Getopt::Long qw(:config gnu_getopt);
 use Pod::Usage;
 use Data::Dumper;
@@ -307,7 +306,10 @@ if ($opt_distribution) {
 }
 
 # Find sources files
-find(sub { readrelease($_, $1) if /$release_pattern/ }, $sources_path);
+chdir($sources_path);
+for (glob "*") {
+	readrelease($_, $1) if /$release_pattern/;
+}
 
 if (!@source_files) {
 	die "$progname: unable to find sources files.\nDid you forget to run apt-get update (or add --update to this command)?";

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to