[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.3-215-g2398d46



The following commit has been merged in the master branch:
commit 2398d464fafd6d4c9d19f8a91b1490478e56595e
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Nov 13 21:28:33 2011 +0100

    Record Source and Source-Version in the status-file
    
    ... except if it is identical to Package/Version.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Lab/Entry.pm b/lib/Lintian/Lab/Entry.pm
index 6dbb5aa..e38c403 100644
--- a/lib/Lintian/Lab/Entry.pm
+++ b/lib/Lintian/Lab/Entry.pm
@@ -360,6 +360,11 @@ sub update_status_file {
     # greatly simplify a migration or detecting a broken lab later.
     print $sfd 'Package: ' . $self->pkg_name, "\n";
     print $sfd 'Version: ' . $self->pkg_version, "\n";
+    # Add Source{,-Version} if it is different from Package/Version
+    print $sfd 'Source: ' . $self->pkg_src, "\n"
+        unless $self->pkg_src eq $self->pkg_name;
+    print $sfd 'Source-Version: ' . $self->pkg_src_version, "\n"
+        unless $self->pkg_src_version eq $self->pkg_version;
     print $sfd 'Architecture: ' . $self->pkg_arch, "\n" if $self->pkg_type ne 'source';
     print $sfd 'Package-Type: ' . $self->pkg_type, "\n";
 

-- 
Debian package checker


Reply to: