mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* Generate a build tree on request even when the source and dest formats are
the same. Closes: #222311
This commit is contained in:
7
alien.pl
7
alien.pl
@@ -455,7 +455,9 @@ foreach my $file (@ARGV) {
|
|||||||
|
|
||||||
foreach my $format (keys %destformats) {
|
foreach my $format (keys %destformats) {
|
||||||
# Skip conversion if package is already the correct format.
|
# 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.
|
# Only unpack once.
|
||||||
if ($package->unpacked_tree) {
|
if ($package->unpacked_tree) {
|
||||||
$package->cleantree;
|
$package->cleantree;
|
||||||
@@ -488,7 +490,8 @@ foreach my $file (@ARGV) {
|
|||||||
|
|
||||||
$package->prep;
|
$package->prep;
|
||||||
|
|
||||||
# If generating build tree only, stop here with message.
|
# If generating build tree only, stop here
|
||||||
|
# with message.
|
||||||
if ($generate) {
|
if ($generate) {
|
||||||
if ($format eq 'deb' && ! $single) {
|
if ($format eq 'deb' && ! $single) {
|
||||||
print "Directories ".$package->unpacked_tree." and ".$package->unpacked_tree.".orig prepared.\n"
|
print "Directories ".$package->unpacked_tree." and ".$package->unpacked_tree.".orig prepared.\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user