Skip to content

Commit

Permalink
Fix Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Aug 26, 2020
1 parent eb95ab1 commit 528a8f4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .idea/artifacts/whut_jar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: io.tresf.whut.Whut

2 changes: 1 addition & 1 deletion src/io/tresf/whut/PkgType.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static PkgType findByVariant(String title) {
if(title != null) {
for (PkgType pkgType : values()) {
for (String variant : pkgType.variants) {
if (variant.toLowerCase().contains(variant)) {
if (title.toLowerCase().contains(variant)) {
return pkgType;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/io/tresf/whut/Whut.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private static String getLinuxPackageManager() {
releaseLoop:
for (Map.Entry<String, String> entry : releaseMap.entrySet()) {
for(String releaseKey : LINUX_RELEASE_KEYS) {
if(entry.equals(releaseKey)) {
if(entry.getKey().equals(releaseKey)) {
if(releaseKey.startsWith("REDHAT")) {
pkgType = PkgType.DNF;
} else {
Expand Down

0 comments on commit 528a8f4

Please sign in to comment.