Permalink
Browse files

Add fedora support

  • Loading branch information...
jtappin committed Nov 13, 2013
1 parent 4c237c3 commit 877231377146fbfde046deb580033152eeb2a7c6
Showing with 19 additions and 13 deletions.
  1. +19 −13 src/cfwrapper.py
View
@@ -75,12 +75,14 @@ def gtk3_version():
if version == "?.?.?": # package not found
version = lib_version("gtk3", "pacman") # Package name in Arch/Manjaro
if version == "?.?.?": # package not found
- version = lib_version("gtk+3.0", "rpm") # Package name in Mageia
-
+ version = lib_version("gtk3", "rpm") # Package name in Fedora
if version == "?.?.?": # package not found
- # Uncomment the following line and change the package name for your Linux distribution:
- # version = lib_version("libgtk-3-0")
- pass # no operation instruction to avoid an empty if statement
+ version = lib_version("gtk+3.0", "rpm") # Package name in Mageia
+
+ if version == "?.?.?": # package not found
+ # Uncomment the following line and change the package name for your Linux distribution:
+ # version = lib_version("libgtk-3-0")
+ pass # no operation instruction to avoid an empty if statement
return version
@@ -90,11 +92,13 @@ def gtk2_version():
if version == "?.?.?": # package not found
version = lib_version("gtk2", "pacman") # Package name in Arch/Manjaro
if version == "?.?.?": # package not found
- version = lib_version("gtk+2.0", "rpm") # Package name in Mageia
+ version = lib_version("gtk2", "rpm") # Package name in Fedora
if version == "?.?.?": # package not found
- # Uncomment the following line and change the package name for your Linux distribution:
- # version = lib_version("libgtk2.0-0")
- pass # no operation instruction to avoid an empty if statement
+ version = lib_version("gtk+2.0", "rpm") # Package name in Mageia
+ if version == "?.?.?": # package not found
+ # Uncomment the following line and change the package name for your Linux distribution:
+ # version = lib_version("libgtk2.0-0")
+ pass # no operation instruction to avoid an empty if statement
return version
@@ -103,11 +107,13 @@ def glib_version():
if version == "?.?.?": # package not found
version = lib_version("glib2", "pacman") # Package name in Arch/Manjaro
if version == "?.?.?": # package not found
- version = lib_version("libglib2.0_0", "rpm") # Package name in Mageia
+ version = lib_version("glib2", "rpm") # Package name in Fedora
if version == "?.?.?": # package not found
- # Uncomment the following line and change the package name for your Linux distribution:
- # version = lib_version("libgtk2.0-0")
- pass # no operation instruction to avoid an empty if statement
+ version = lib_version("libglib2.0_0", "rpm") # Package name in Mageia
+ if version == "?.?.?": # package not found
+ # Uncomment the following line and change the package name for your Linux distribution:
+ # version = lib_version("libgtk2.0-0")
+ pass # no operation instruction to avoid an empty if statement
return version

0 comments on commit 8772313

Please sign in to comment.