Author: schoenfeld
Date: 2008-09-21 16:43:46 +0000 (Sun, 21 Sep 2008)
New Revision: 1636
Modified:
trunk/debian/changelog
trunk/scripts/mk-build-deps.pl
Log:
mk-build-deps: Add an option --tool to specify which tool to use
when installing the packages (default: apt-get)
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-09-21 16:14:06 UTC (rev 1635)
+++ trunk/debian/changelog 2008-09-21 16:43:46 UTC (rev 1636)
@@ -8,8 +8,10 @@
[ Patrick Schoenfeld ]
* mk-build-deps: Implement --install switch which installs a generated
package and its depends afterwards.
+ * mk-build-deps: Add an option --tool to specify which tool to use
+ when installing the packages (default: apt-get)
- -- Patrick Schoenfeld <[EMAIL PROTECTED]> Sun, 21 Sep 2008 18:12:36 +0200
+ -- Patrick Schoenfeld <[EMAIL PROTECTED]> Sun, 21 Sep 2008 18:43:33 +0200
devscripts (2.10.37) unstable; urgency=low
Modified: trunk/scripts/mk-build-deps.pl
===================================================================
--- trunk/scripts/mk-build-deps.pl 2008-09-21 16:14:06 UTC (rev 1635)
+++ trunk/scripts/mk-build-deps.pl 2008-09-21 16:43:46 UTC (rev 1636)
@@ -45,6 +45,11 @@
Install the generated packages and its build-dependencies.
+=item B<-t>, B<--tool>
+
+When installing the generated package use the specified tool.
+(default: apt-get)
+
=item B<-h>, B<--help>
Show a summary of options.
@@ -75,12 +80,14 @@
my $opt_install;
my ($opt_help, $opt_version);
my $control;
+my $install_tool='apt-get';
my @packages;
my @deb_files;
GetOptions("help|h" => \$opt_help,
"version|v" => \$opt_version,
"install|i" => \$opt_install,
+ "tool|t=s" => \$install_tool,
)
or die "Usage: $progname <control file | package name> [...]\nRun
$progname --help for more details\n";
@@ -163,7 +170,7 @@
}
system 'dpkg', '--unpack', @deb_files;
- system 'aptitude', '-f', 'install';
+ system $install_tool, '-f', 'install';
}
sub help {
--
To unsubscribe, send mail to [EMAIL PROTECTED]