mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
full patch support (untested)
This commit is contained in:
1
TODO
1
TODO
@@ -1,3 +1,2 @@
|
||||
* handling postinst script when converting to/from .slp packages.
|
||||
* patches
|
||||
|
||||
|
||||
11
alien
11
alien
@@ -359,12 +359,23 @@ foreach my $file (@ARGV) {
|
||||
# Mutate package into desired format.
|
||||
bless($package, "Alien::Package::".ucfirst($format));
|
||||
|
||||
# Make .orig.tar.gz directory?
|
||||
if ($format eq 'deb' && ! $single && $generate) {
|
||||
# Make .orig.tar.gz directory.
|
||||
system("cp -fa ".$package->unpacked_tree." ".$package->unpacked_tree.".orig") &&
|
||||
die "cp -fa failed";
|
||||
}
|
||||
|
||||
# See if a patch file should be used.
|
||||
if ($format eq 'deb' && ! $nopatch) {
|
||||
if (defined $patchfile) {
|
||||
$package->patchfile($patchfile)
|
||||
}
|
||||
else {
|
||||
$package->patchfile($package->getpatch);
|
||||
}
|
||||
}
|
||||
|
||||
$package->prep;
|
||||
|
||||
# If generating build tree only, stop here with message.
|
||||
|
||||
Reference in New Issue
Block a user