1
# arb-check-source -- lintian check script -*- perl -*-
3
# Copyright (C) 2012 Bhavani Shankar <bhavi@ubuntu.com>
5
# - Based on arb-lint by Daniel Holbach
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 2 of the License, or
10
# (at your option) any later version.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program. If not, you can find it on the World Wide
19
# Web at http://www.gnu.org/copyleft/gpl.html, or write to the Free
20
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
23
package Lintian::ubuntu::arb::arb_check_source;
28
use Lintian::Tags qw(tag);
29
use Lintian::Relation;
32
my ($pkg, undef, $info, $proc, $group) = @_;
33
my $qpkg = quotemeta ($pkg);
34
my ($src) = $group->get_source_processable;
36
@entries = $info->changelog->data if $info->changelog;
38
# Check for multiple changelog entries
41
for my $entry (@entries) {
42
$versions{$entry->Version} = 1 if defined $entry->Version;
47
tag 'arb-app-has-multiple-changelog-entries';
49
# Check for conflicts, replaces and breaks field
50
foreach my $fname (qw(conflicts replaces breaks)) {
51
if (defined $info->field ($fname)) {
52
tag 'field-not-allowed-in-arb-app', $fname;
55
# Check for deprecated python installations
56
my $bdepends = $info->relation ('build-depends-all'); {
57
tag 'arb-app-has-deprecated-python-installation' if ($bdepends->implies('python-support | python-central'))