diff options
-rwxr-xr-x | dh_xul-ext | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -125,9 +125,12 @@ def get_vendor(): 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", "--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): |