<div id="geary-body" dir="auto">Package: mozilla-devscripts<div>Version: 0.54.2+nmu1</div><div><br></div><div>While building a package using dh_webext, I noticed the following warning/error:</div><div><br></div><div><div>dh_webext: Found != 1 manifest.json, source PATH set to .</div></div><div><br></div><div>I was a bit confused because there's only one manifest.json file, but it turns out that the find command sees the following:</div><div><br></div><div><div>find . -name manifest.json -not -path './debian/*'</div></div><div><div>./manifest.json</div><div>./.pc/applications.patch/manifest.json</div></div><div><br></div><div>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.</div><div><br></div><div>I suggest the following command instead:</div><div>find . -name manifest.json -not -path './debian/*' -not -path './.pc/*'</div><div><br></div><div>In the script, that would look like this:</div><div><div>        candidates = subprocess.check_output(</div><div>            ["find", ".", "-name", "manifest.json", "-not", "-path", './debian/*', "-not", "-path", './.pc/*'])</div></div><div><br></div></div>