Skip to content

Commit

Permalink
Make it work on other architectures than x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
frantisekz committed Aug 23, 2016
1 parent c61ab65 commit ebf6624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fur
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ def build_package(name):
Accepts package name. Compiles all .src.rpm files to the rpm, recursively tries to satisfy build time dependencies.
"""
user = getpass.getuser()
arch = platform.machine()
srpms_dir = "/home/" + user + "/.fur/" + name + "/SRPMS/"
os.system("mockchain -r fedora-" + get_fedora_version() + "-x86_64 -m --resultdir=/home/" + user + "/.fur/" + name + "/RPMS/ " + srpms_dir + "/*")
os.system("mockchain -r fedora-" + get_fedora_version() + "-" + arch + "-m --resultdir=/home/" + user + "/.fur/" + name + "/RPMS/ " + srpms_dir + "/*")
os.system("rm ~/.fur/" + name + "/*.src.rpm")
os.system("rm ~/.fur/" + name + "/RPMS/*.src.rpm")

Expand Down

0 comments on commit ebf6624

Please sign in to comment.