diff --git a/TODO b/TODO index 4b5616f..8b12160 100644 --- a/TODO +++ b/TODO @@ -1 +1,3 @@ * handling postinst script when converting to/from .slp packages. +* patches + diff --git a/alien b/alien index c83e324..09ef41b 100755 --- a/alien +++ b/alien @@ -279,6 +279,12 @@ if (! %destformats) { } # 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) { die "Specified patch file, \"$patchfile\" cannot be found.\n"; }