[SCM] Debian package checker branch, master, updated. 2.5.6-106-g648b9a4
The following commit has been merged in the master branch:
commit 371bb392209e23a9a00e24a2f681448dd6ae5f74
Author: Felix Geyer <debfx-pkg@fobos.de>
Date: Mon Apr 16 18:39:37 2012 +0200
c/files: Add raster-image-in-scalable-directory tag
diff --git a/checks/files b/checks/files
index d5fdb8e..bd6db66 100644
--- a/checks/files
+++ b/checks/files
@@ -927,6 +927,10 @@ foreach my $file (@{$info->sorted_index}) {
unless ($dsize eq $fsize);
}
+ if ($file =~ m,/icons/[^/]+/scalable/.*\.(?:png|xpm)$,) {
+ tag 'raster-image-in-scalable-directory', $file;
+ }
+
# ---------------- plain files
if ($index_info->{type} =~ m/^[-h]/) {
# ---------------- backup files and autosave files
diff --git a/checks/files.desc b/checks/files.desc
index cb62a01..c58e798 100644
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -984,6 +984,12 @@ Info: The icon has a size that differs from the size specified by the name
of the directory under which it was installed. The icon was probably
mistakenly installed into the wrong directory.
+Tag: raster-image-in-scalable-directory
+Severity: normal
+Certainty: certain
+Info: The given raster image was installed into a "scalable" icon directory.
+ Only vector graphics (e.g. SVG) should be installed into those directories.
+
Tag: gz-file-not-gzip
Severity: normal
Certainty: possible
diff --git a/t/tests/files-general/debian/debian/install b/t/tests/files-general/debian/debian/install
index 74606e9..4ce9d68 100644
--- a/t/tests/files-general/debian/debian/install
+++ b/t/tests/files-general/debian/debian/install
@@ -3,6 +3,7 @@ lintian-16x16.png usr/share/icons/hicolor/22x22/apps
lintian-22x22.png usr/share/apps/lintian/icons/hicolor/22x22
lintian-16x16.png usr/share/doc/lintian/
lintian-22x22.png usr/share/games/icons/hicolor/22x22
+lintian-16x16.png usr/share/icons/hicolor/scalable/apps
--lzma etc/modprobe.d
lintian.conf etc/modprobe.d
dir usr/share/info
diff --git a/t/tests/files-general/desc b/t/tests/files-general/desc
index 91d109e..aabf83a 100644
--- a/t/tests/files-general/desc
+++ b/t/tests/files-general/desc
@@ -22,6 +22,7 @@ Test-For:
package-contains-mime-cache-file
package-contains-mimeinfo.cache-file
package-modifies-ld.so-search-path
+ raster-image-in-scalable-directory
star-file
stray-directory-in-manpage-directory
windows-devel-file-in-package
diff --git a/t/tests/files-general/tags b/t/tests/files-general/tags
index b22e693..329a24c 100644
--- a/t/tests/files-general/tags
+++ b/t/tests/files-general/tags
@@ -21,4 +21,5 @@ W: files-general: file-name-ends-in-whitespace usr/share/foo/ws
W: files-general: icon-size-and-directory-name-mismatch usr/share/apps/lintian/icons/hicolor/22x22/lintian-16x16.png 16x16
W: files-general: icon-size-and-directory-name-mismatch usr/share/icons/hicolor/22x22/apps/lintian-16x16.png 16x16
W: files-general: obsolete-comments-style-in-php-ini etc/php5/conf.d/php-foo.ini
+W: files-general: raster-image-in-scalable-directory usr/share/icons/hicolor/scalable/apps/lintian-16x16.png
W: files-general: windows-devel-file-in-package usr/lib/foo/foo.vcproj
--
Debian package checker
Reply to: