[lintian] 01/02: Detect obsolete path for debian/upstream/metadata
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit 2208c3d880fd846151c5d4f4784577a77c6f9f77
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date: Sun Jul 20 14:01:00 2014 +0200
Detect obsolete path for debian/upstream/metadata
Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
checks/cruft.desc | 17 +++++++++++++++++
checks/cruft.pm | 7 +++++++
2 files changed, 24 insertions(+)
diff --git a/checks/cruft.desc b/checks/cruft.desc
index 07af575..12f3b86 100644
--- a/checks/cruft.desc
+++ b/checks/cruft.desc
@@ -348,6 +348,23 @@ Info: The Debian diff of this non-native package appears to be completely
package updates in Debian (files can't be removed from the
<tt>debian</tt> directory via the diff, for example).
+Tag: debian-upstream-obsolete-path
+Severity: important
+Certainty: certain
+Info: Upstream metadata is stored under an obsolete path.
+ .
+ Upstream MEtadata GAthered with YAml (UMEGAYA) an effort to collect
+ meta-information about upstream projects in a file called
+ <tt>debian/upstream/metadata</tt> in the source packages
+ maintained in a publicly accessible version control system (VCS).
+ .
+ Older version of this specification used
+ <tt>debian/upstream-metadata.yaml</tt> and <tt>debian/upstream</tt>
+ as file storage of meta-information.
+ .
+ You should move these file to <tt>debian/upstream/metadata</tt>.
+
+
Tag: configure-generated-file-in-source
Severity: normal
Certainty: possible
diff --git a/checks/cruft.pm b/checks/cruft.pm
index 1d63740..ce5c050 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -635,6 +635,13 @@ sub find_cruft {
close($fd);
}
+ # here we check old upstream specification
+ # debian/upstream should be a directory
+ if ( $name eq 'debian/upstream'
+ || $name eq 'debian/upstream-metadata.yaml') {
+ tag 'debian-upstream-obsolete-path', $name;
+ }
+
unless ($warned->{$name}) {
for my $rule (@file_checks) {
next if ($rule->[2] and not $info->native);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: