[Pkg-mozext-maintainers] Bug#1053255: mozilla-devscripts: dh_webext shouldn't look in .pc for manifest.json
Andres Salomon
dilinger at queued.net
Sat Sep 30 07:48:14 BST 2023
Package: mozilla-devscripts
Version: 0.54.2+nmu1
While building a package using dh_webext, I noticed the following
warning/error:
dh_webext: Found != 1 manifest.json, source PATH set to .
I was a bit confused because there's only one manifest.json file, but
it turns out that the find command sees the following:
find . -name manifest.json -not -path './debian/*'
./manifest.json
./.pc/applications.patch/manifest.json
I have a quilt patch called debian/patches/applications.patch that
modifies manifest.json. As such, when the package builds it creates
that manifest.json file in the .pc directory. dh_webext shouldn't be
picking that up; it should be ignoring everything in .pc.
I suggest the following command instead:
find . -name manifest.json -not -path './debian/*' -not -path './.pc/*'
In the script, that would look like this:
candidates = subprocess.check_output(
["find", ".", "-name", "manifest.json", "-not", "-path",
'./debian/*', "-not", "-path", './.pc/*'])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mozext-maintainers/attachments/20230930/ca5922ae/attachment.htm>
More information about the Pkg-mozext-maintainers
mailing list