[Git][java-team/javatools][master] 2 commits: jh_linkjars: skip any virtual/uninstalled Build-Depends
Alexandre Detiste (@detiste-guest)
gitlab at salsa.debian.org
Sun May 17 22:16:12 BST 2026
Alexandre Detiste pushed to branch master at Debian Java Maintainers / javatools
Commits:
5bf68672 by Luca Boccassi at 2026-05-16T11:52:49+01:00
jh_linkjars: skip any virtual/uninstalled Build-Depends
Previously only debhelper-compat was hardcoded as a skip (#933715),
but other virtual packages provided by debhelper, such as
dh-sequence-installsysusers, dh-sequence-installtmpfiles, etc.,
trigger the same dpkg -L failure.
Check the package status with dpkg-query first and skip any package
that is not actually installed, which generically covers all virtual
packages.
- - - - -
397eac8c by Alexandre Detiste at 2026-05-17T23:16:11+02:00
Merge branch 'jh-linkjars-skip-virtual' into 'master'
jh_linkjars: skip any virtual/uninstalled Build-Depends
See merge request java-team/javatools!7
- - - - -
1 changed file:
- jh_linkjars
Changes:
=====================================
jh_linkjars
=====================================
@@ -108,8 +108,9 @@ sub find_jars {
my @all_jars;
while (@packages) {
my $pkg = pop(@packages);
- # Skip debhelper-compat because it is a virtual package #933715
- next if $pkg eq 'debhelper-compat';
+ # Skip virtual packages (e.g. debhelper-compat, dh-sequence-*) #933715
+ my $status = `dpkg-query -W -f '\${db:Status-Abbrev}' "$pkg" 2>/dev/null`;
+ next if $status !~ m/^.i/;
my $dpkg_output = `dpkg -L "$pkg"`;
error_exitcode("dpkg -L \"$pkg\"") if $?;
my @jars = parse_dpkg_L($dpkg_output);
View it on GitLab: https://salsa.debian.org/java-team/javatools/-/compare/4600206b04b996e5bd37045de170855296dc4ca3...397eac8c922b6d8e323bb09980f5d6d917d45c62
--
View it on GitLab: https://salsa.debian.org/java-team/javatools/-/compare/4600206b04b996e5bd37045de170855296dc4ca3...397eac8c922b6d8e323bb09980f5d6d917d45c62
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20260517/331710e4/attachment.htm>
More information about the pkg-java-commits
mailing list