Skip to content

Commit c2d3ea2

Browse files
committed
bugfix: fix debian bullseye
In manpages-dev package there is a know bug with broken symlinks in /usr/share/man/man3/. There is no hope that it will be fixed. Let's add a hack to bypass it. More info: https://groups.google.com/g/linux.debian.bugs.dist/c/w5HiAxl7e7Y
1 parent 35bf36c commit c2d3ea2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

dist/main/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -62486,6 +62486,15 @@ function list_files_in_dir(directory, files = []) {
6248662486
});
6248762487
return files;
6248862488
}
62489+
function dpkg_create_config() {
62490+
const dpkgConfig = {
62491+
excludes: [],
62492+
includes: []
62493+
};
62494+
// https://groups.google.com/g/linux.debian.bugs.dist/c/w5HiAxl7e7Y
62495+
dpkgConfig.excludes.push(glob_to_regex('/usr/share/man/man3/LIST_*.3'));
62496+
return dpkgConfig;
62497+
}
6248962498
function dpkg_read_config() {
6249062499
const dpkgConfigFilepath = '/etc/dpkg/dpkg.cfg';
6249162500
const dpkgConfigDirPath = '/etc/dpkg/dpkg.cfg.d';

src/main.ts

+12
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,18 @@ function list_files_in_dir(directory: string, files: string[] = []): string[] {
194194
return files
195195
}
196196

197+
function dpkg_create_config(): DpkgConfig {
198+
const dpkgConfig: DpkgConfig = {
199+
excludes: [],
200+
includes: []
201+
}
202+
203+
// https://groups.google.com/g/linux.debian.bugs.dist/c/w5HiAxl7e7Y
204+
dpkgConfig.excludes.push(glob_to_regex('/usr/share/man/man3/LIST_*.3'))
205+
206+
return dpkgConfig
207+
}
208+
197209
function dpkg_read_config(): DpkgConfig {
198210
const dpkgConfigFilepath = '/etc/dpkg/dpkg.cfg'
199211
const dpkgConfigDirPath = '/etc/dpkg/dpkg.cfg.d'

0 commit comments

Comments
 (0)