Author: schoenfeld-guest
Date: 2008-08-14 20:23:12 +0000 (Thu, 14 Aug 2008)
New Revision: 1594

Modified:
   trunk/debian/changelog
   trunk/scripts/build-rdeps.pl
Log:
build-rdeps: Add a --distribution parameter to enable selection of
another distribution instead of unstable
(Closes: #471498)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-08-13 18:10:32 UTC (rev 1593)
+++ trunk/debian/changelog      2008-08-14 20:23:12 UTC (rev 1594)
@@ -29,8 +29,13 @@
   [ Joey Hess ]
   * bts: Add new 'summary' command.
 
- -- Adam D. Barratt <[EMAIL PROTECTED]>  Mon, 28 Jul 2008 20:06:49 +0100
+  [ Patrick Schoenfeld ]
+  * build-rdeps: Add a --distribution parameter to enable selection of
+    another distribution instead of unstable
+    (Closes: #471498)
 
+ -- Patrick Schoenfeld <[EMAIL PROTECTED]>  Thu, 14 Aug 2008 22:22:40 +0200
+
 devscripts (2.10.35) unstable; urgency=low
 
   * checkbashisms: Only flag "local x y" and "local foo=bar" when --posix is

Modified: trunk/scripts/build-rdeps.pl
===================================================================
--- trunk/scripts/build-rdeps.pl        2008-08-13 18:10:32 UTC (rev 1593)
+++ trunk/scripts/build-rdeps.pl        2008-08-14 20:23:12 UTC (rev 1594)
@@ -39,6 +39,10 @@
 
 Use sudo when running apt-get update. Has no effect if -u is ommitted.
 
+=item B<--distribution>
+
+Select another distribution, which is searched for build-depends.
+
 =item B<-m> B<--print-maintainer>
 
 Print the value of the maintainer field for each package.
@@ -78,6 +82,7 @@
 my $opt_sudo;
 my $opt_maintainer;
 my $opt_mainonly;
+my $opt_distribution;
 
 if (!(-x $dctrl)) {
        die "$progname: Fatal error. grep-dctrl is not available.\nPlease 
install the 'dctrl-tools' package.\n";
@@ -102,13 +107,15 @@
 Searches for all packages that build-depend on the specified package.
 
 Options:
-   -u, --update            Run apt-get update before searching for 
build-depends.
-                           (needs root privileges)
-   -s, --sudo              Use sudo when running apt-get update
-                           (has no effect when -u is ommitted)
-   -d, --debug             Enable the debug mode
-   -m, --print-maintainer  Print the maintainer information (experimental)
-   --only-main             Ignore contrib and non-free
+   -u, --update                  Run apt-get update before searching for 
build-depends.
+                                 (needs root privileges)
+   -s, --sudo                    Use sudo when running apt-get update
+                                 (has no effect when -u is ommitted)
+   -d, --debug                   Enable the debug mode
+   -m, --print-maintainer        Print the maintainer information 
(experimental)
+   --distribution distribution   Select a distribution to search for 
build-depends
+                                 (Default: unstable)
+   --only-main                   Ignore contrib and non-free
 
 EOT
 version;
@@ -188,6 +195,7 @@
        "u|update" => \$opt_update,
        "s|sudo" => \$opt_sudo,
        "m|print-maintainer" => \$opt_maintainer,
+       "distribution=s" => \$opt_distribution,
        "only-main" => \$opt_mainonly,
        "d|debug" => \$opt_debug,
        "h|help" => sub { usage; },
@@ -213,6 +221,11 @@
        system @cmd;
 }
 
+if ($opt_distribution) {
+       print STDERR "DEBUG: Setting distribution to $opt_distribution" if 
($opt_debug);
+       $source_pattern = ".*_dists_" . $opt_distribution . "_.*Sources\$";
+}
+
 # Find sources files
 find(\&findsources, $sources_path);
 



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to