fix fallback detection of debian build types
authorAdrian Schröter <adrian@suse.de>
Tue, 1 Jul 2008 12:59:29 +0000 (12:59 +0000)
committerAdrian Schröter <adrian@suse.de>
Tue, 1 Jul 2008 12:59:29 +0000 (12:59 +0000)
Build.pm

index 52a9a14..690db16 100644 (file)
--- a/Build.pm
+++ b/Build.pm
@@ -233,7 +233,7 @@ sub read_config {
     # Fallback to old guessing method if no type (spec, dsc or kiwi) is defined
     if (grep {$_ eq 'rpm'} @{$config->{'preinstall'} || []}) {
       $config->{'type'} = 'spec';
-    } elsif (grep {$_ eq 'deb'} @{$config->{'preinstall'} || []}) {
+    } elsif (grep {$_ eq 'debianutils'} @{$config->{'preinstall'} || []}) {
       $config->{'type'} = 'dsc';
     } else {
       $config->{'type'} = 'UNDEFINED';