diff --git a/package.py b/package.py index 8d9b562a..be949bce 100644 --- a/package.py +++ b/package.py @@ -12,6 +12,7 @@ import shutil import json from argparse import ArgumentParser import platform +import distro import re from hscommon.build import ( @@ -90,7 +91,7 @@ def package_debian_distribution(distribution): ) shutil.copy(op.join("images", "dgse_logo_128.png"), srcpath) os.chdir(destpath) - cmd = "dpkg-buildpackage -S -us -uc" + cmd = "dpkg-buildpackage -F -us -uc" os.system(cmd) os.chdir("../..") @@ -212,7 +213,7 @@ def main(): package_windows() else: if not args.arch_pkg: - distname, _, _ = platform.dist() + distname = distro.id() else: distname = "arch" if distname == "arch": diff --git a/requirements.txt b/requirements.txt index 9b90932b..97fa8f44 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ Send2Trash>=1.3.0 sphinx>=1.2.2 polib>=1.0.4 hsaudiotag3k>=1.1.3 +distro>=1.5.0 \ No newline at end of file