Преглед изворни кода

bigfixes to the vcs support

Joey Hess пре 19 година
родитељ
комит
2cb9d9ff03
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      scripts/dpkg-source.pl

+ 2 - 2
scripts/dpkg-source.pl

@@ -377,7 +377,7 @@ if ($opmode eq 'build') {
 	    loadvcs($2)
 	    loadvcs($2)
 	    	|| error(sprintf(_g("unsupported vcs \"%s\" in control info file 'Format' field"), $2));
 	    	|| error(sprintf(_g("unsupported vcs \"%s\" in control info file 'Format' field"), $2));
             
             
-	    if ($sourcestyle !~ /[akpursnAKPURv]/) {
+	    if ($sourcestyle =~ /[akpursKPUR]/) {
 		warning(sprintf(_g("source handling style -s%s not supported when generating %s format source package"), $sourcestyle, $vcs));
 		warning(sprintf(_g("source handling style -s%s not supported when generating %s format source package"), $sourcestyle, $vcs));
             }
             }
             $sourcestyle='v';
             $sourcestyle='v';
@@ -482,7 +482,7 @@ if ($opmode eq 'build') {
             &syserr(sprintf(_g("unable to create `%s'"), $tardirname));
             &syserr(sprintf(_g("unable to create `%s'"), $tardirname));
 	push @exit_handlers, sub { erasedir($tardirname) };
 	push @exit_handlers, sub { erasedir($tardirname) };
         
         
-	eval qq{Dpkg::Source::VCS::${vcs}::prep_tar($dir, \$tardirname)};
+	eval qq{Dpkg::Source::VCS::${vcs}::prep_tar(\$dir, \$tardirname)};
 	if ($@) {
 	if ($@) {
             &syserr($@);
             &syserr($@);
 	}
 	}