Explorar o código

Dpkg::Source::Package::V3::Quilt: Clarify missing revision error

Closes: #719348, #733746
Guillem Jover %!s(int64=12) %!d(string=hai) anos
pai
achega
c77ecff725
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 2 0
      debian/changelog
  2. 2 1
      scripts/Dpkg/Source/Package/V3/Quilt.pm

+ 2 - 0
debian/changelog

@@ -32,6 +32,8 @@ dpkg (1.17.6) UNRELEASED; urgency=low
   * Add shell hooks support to dpkg-buildpackage, based on the debuild
   * Add shell hooks support to dpkg-buildpackage, based on the debuild
     implementation in devscripts 2.13.9. Closes: #476221
     implementation in devscripts 2.13.9. Closes: #476221
   * Add support for Testsuite source field.
   * Add support for Testsuite source field.
+  * Clarify error message about missing revision in non-native source package.
+    Closes: #719348, #733746
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * Swedish (Peter Krefting).
   * Swedish (Peter Krefting).

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

@@ -76,7 +76,8 @@ sub can_build {
     return ($code, $msg) if $code == 0;
     return ($code, $msg) if $code == 0;
 
 
     my $v = Dpkg::Version->new($self->{fields}->{'Version'});
     my $v = Dpkg::Version->new($self->{fields}->{'Version'});
-    return (0, _g('version does not contain a revision')) if $v->is_native();
+    return (0, _g('non-native package version does not contain a revision'))
+        if $v->is_native();
 
 
     my $quilt = $self->build_quilt_object($dir);
     my $quilt = $self->build_quilt_object($dir);
     $msg = $quilt->find_problems();
     $msg = $quilt->find_problems();