Skip to content
Commits on Source (2)
......@@ -3,6 +3,13 @@ debhelper (11.1.4) UNRELEASED; urgency=medium
* qmake.pm/qmake4.pm: Avoid global state in the build systems.
* dh_makeshlibs: Fix --no-act, which could still cause writes
to the shlibs file. Thanks to Sven Joachim for reporting it.
* dh_installdocs: Discard auto-detected main doc package when
passed -A/--all as it causes file-conflicts.
(Closes: #886108, #888294)
* Dh_Lib: Fix regression where "foo{bar}" would not be matched
when the pattern was handled as a glob. The bug was
introduced in debhelper/10.6. Thanks to Wouter Verhelst for
finding the bug. (Closes: #888251)
-- Niels Thykier <niels@thykier.net> Sun, 21 Jan 2018 08:18:20 +0000
......
......@@ -289,6 +289,9 @@ foreach my $package (getpackages()) {
if (not defined($target_package)) {
warning("Cannot auto-detect main package for ${package}. If the default is wrong, please use --doc-main-package");
$target_package = $package;
} elsif ($dh{PARAMS_ALL} and $package ne $target_package and not $dh{DOC_MAIN_PACKAGE}) {
warning("Not using auto-detected $target_package as main doc package for $package: With -A/--all, this would cause file-conflicts.");
$target_package = $package;
}
if ($dh{EXCLUDE_FIND}) {
$exclude .= ' -and ! \( '.$dh{EXCLUDE_FIND}.' \)';
......
......@@ -1187,8 +1187,14 @@ sub glob_expand {
for my $pattern (@patterns) {
my @m;
for my $dir (@dirs) {
@m = bsd_glob("$dir/$pattern", GLOB_CSH & ~(GLOB_NOMAGIC|GLOB_TILDE));
last if @m;# > 1 or (@m and (-l $m[0] or -e _));
my $full_pattern = "$dir/$pattern";
@m = bsd_glob($full_pattern, GLOB_CSH & ~(GLOB_NOMAGIC|GLOB_TILDE));
last if @m;
# Handle "foo{bar}" pattern (#888251)
if (-l $full_pattern or -e _) {
push(@m, $full_pattern);
last;
}
}
if (not @m) {
$error_handler //= \&glob_expand_error_handler_reject;
......