* Generate a build tree on request even when the source and dest formats are

the same. Closes: #222311
This commit is contained in:
joey
2003-12-02 20:30:49 +00:00
parent 6ac46f031b
commit 298ed79cf1

View File

@@ -455,7 +455,9 @@ foreach my $file (@ARGV) {
foreach my $format (keys %destformats) {
# Skip conversion if package is already the correct format.
if ($package->origformat ne $format) {
# Howver, generate build tree even if the format is
# unchanged.
if ($package->origformat ne $format || $generate) {
# Only unpack once.
if ($package->unpacked_tree) {
$package->cleantree;
@@ -488,7 +490,8 @@ foreach my $file (@ARGV) {
$package->prep;
# If generating build tree only, stop here with message.
# If generating build tree only, stop here
# with message.
if ($generate) {
if ($format eq 'deb' && ! $single) {
print "Directories ".$package->unpacked_tree." and ".$package->unpacked_tree.".orig prepared.\n"