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

Re: javalib-but-no-public-jars lintian



>N:    does not contain any JAR file in /usr/share/java, while the java policy


my $is_transitional = $info->is_pkg_class('transitional');
if (!$has_public_jars && !$is_transitional && $pkg =~ /^lib[^\s,]+-java$/){
# Skip this if it installs a symlink in usr/share/java
my $java_dir = $info->index_resolved_path('usr/share/java/');
my $has_jars = 0;
$has_jars = 1
if $java_dir
and any { $_->name =~ m@^[^/]+\.jar$@o } $java_dir->children;
tag 'javalib-but-no-public-jars' if not $has_jars;
}



I would say, it detects that the end of the link is outside usr/share/java, but
only usr/share.

Technically the symlink is in usr/share/java, but the link points to outside.

However, I'm really not sure if my perl-foo (close to zero) is correct enough

G.


Reply to: