mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
more sanity checks
This commit is contained in:
2
TODO
2
TODO
@@ -1 +1,3 @@
|
|||||||
* handling postinst script when converting to/from .slp packages.
|
* handling postinst script when converting to/from .slp packages.
|
||||||
|
* patches
|
||||||
|
|
||||||
|
|||||||
6
alien
6
alien
@@ -279,6 +279,12 @@ if (! %destformats) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# A few sanity checks.
|
# A few sanity checks.
|
||||||
|
if (($generate || $single) && $install) {
|
||||||
|
die "You can not use --generate or --single with --install.\n";
|
||||||
|
}
|
||||||
|
if (($generate || $single) && keys %destformats > 1) {
|
||||||
|
die "--generate and --single may noly be used when converting to a single format.\n";
|
||||||
|
}
|
||||||
if ($patchfile && ! -f $patchfile) {
|
if ($patchfile && ! -f $patchfile) {
|
||||||
die "Specified patch file, \"$patchfile\" cannot be found.\n";
|
die "Specified patch file, \"$patchfile\" cannot be found.\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user