From 624306abba76884a10557a066c0549851073fb77 Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 22 Apr 2000 01:58:31 +0000 Subject: [PATCH] more sanity checks --- TODO | 2 ++ alien | 6 ++++++ 2 files changed, 8 insertions(+) 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"; }