equal
deleted
inserted
replaced
59 } |
59 } |
60 |
60 |
61 static String getRpmArch() throws Exception { |
61 static String getRpmArch() throws Exception { |
62 File out = File.createTempFile("rpmbuild", ".out"); |
62 File out = File.createTempFile("rpmbuild", ".out"); |
63 out.deleteOnExit(); |
63 out.deleteOnExit(); |
64 int code = JPackageHelper.execute(out, "rpmbuild", "-E=%{_target_cpu}"); |
64 int code = JPackageHelper.execute(out, "rpmbuild", "--eval=%{_target_cpu}"); |
65 if (code != 0) { |
65 if (code != 0) { |
66 throw new AssertionError("Error: unable to get rpm arch"); |
66 throw new AssertionError("Error: unable to get rpm arch"); |
67 } |
67 } |
68 return Files.readAllLines(out.toPath()).get(0); |
68 return Files.readAllLines(out.toPath()).get(0); |
69 } |
69 } |