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

dpkg-source: unapplied patches do not warrant a warning

There are perfectly legitimate cases where the patches are not applied
and there's no need to output a long warning about this. A brief message
is more than enough.
Raphaël Hertzog пре 15 година
родитељ
комит
9c590651dc
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 1 1
      scripts/Dpkg/Source/Package/V2.pm
  2. 1 2
      scripts/Dpkg/Source/Package/V3/quilt.pm

+ 1 - 1
scripts/Dpkg/Source/Package/V2.pm

@@ -293,7 +293,7 @@ sub check_patches_applied {
     my ($self, $dir) = @_;
     my $applied = File::Spec->catfile($dir, "debian", "patches", ".dpkg-source-applied");
     unless (-e $applied) {
-        warning(_g("patches have not been applied, applying them now (use --no-preparation to override)"));
+        info(_g("patches are not applied, applying them now"));
         $self->apply_patches($dir, usage => 'preparation');
     }
 }

+ 1 - 2
scripts/Dpkg/Source/Package/V3/quilt.pm

@@ -325,8 +325,7 @@ sub check_patches_applied {
                                               $to_apply[0]);
         my $patch_obj = Dpkg::Source::Patch->new(filename => $first_patch);
         if ($patch_obj->check_apply($dir)) {
-            warning(_g("patches have not been applied, applying them now " .
-                       "(use --no-preparation to override)"));
+            info(_g("patches are not applied, applying them now"));
             $self->apply_patches($dir, usage => 'preparation', verbose => 1,
                                  patches => \@to_apply);
         }