diff -Nru mozilla-devscripts-0.32/debian/changelog mozilla-devscripts-0.32+rpi1/debian/changelog --- mozilla-devscripts-0.32/debian/changelog 2012-05-23 21:50:23.000000000 +0000 +++ mozilla-devscripts-0.32+rpi1/debian/changelog 2014-03-20 22:10:44.000000000 +0000 @@ -1,3 +1,11 @@ +mozilla-devscripts (0.32+rpi1) wheezy-staging; urgency=medium + + * Use dpkg-vendor --derives-from Ubuntu instead of dpkg-vendor --query vendor + in dh_xul-ext so Ubuntu derivatives get treated like Ubuntu and non-ubuntu + based debian derivatives get treated like debian. + + -- Peter Michael Green Thu, 20 Mar 2014 22:10:25 +0000 + mozilla-devscripts (0.32) unstable; urgency=low * dh_xul-ext: Do not generate a Breaks entry for Firefox/Iceweasel 10 or diff -Nru mozilla-devscripts-0.32/dh_xul-ext mozilla-devscripts-0.32+rpi1/dh_xul-ext --- mozilla-devscripts-0.32/dh_xul-ext 2012-05-23 19:27:17.000000000 +0000 +++ mozilla-devscripts-0.32+rpi1/dh_xul-ext 2014-03-20 22:10:44.000000000 +0000 @@ -120,9 +120,18 @@ if _VENDOR_ENV in os.environ: vendor = os.environ[_VENDOR_ENV] else: - cmd = ["dpkg-vendor", "--query", "Vendor"] - process = subprocess.Popen(cmd, stdout=subprocess.PIPE) - vendor = process.communicate()[0].strip() + #cmd = ["dpkg-vendor", "--query", "Vendor"] + #process = subprocess.Popen(cmd, stdout=subprocess.PIPE) + #vendor = process.communicate()[0].strip() + #Use dpkg-vendor --derives-from Ubuntu rathe than dpkg-vendor --query + #So Ubuntu derivatives get treated like ubuntu and non-ubuntu based + #Debian derivatives get treated like Debian. + cmd = ["dpkg-vendor", "--derives-from", "Ubuntu"] + retval = subprocess.call(cmd); + if (retval == 0): + vendor = "Ubuntu" + else: + vendor = "Debian" return vendor def get_xul_apps(script_name, all_distros):