diff options
author | SamLukeYes | 2020-06-23 17:12:25 +0800 |
---|---|---|
committer | SamLukeYes | 2020-06-23 17:12:25 +0800 |
commit | 91bf6baa1e4b0fd7cbabc0b2a17e2be93411fb01 (patch) | |
tree | 9781179209ca2d7b87005ba67f473c63e57a55e0 | |
parent | 898e4f000196613d022823b7431c7af197b752ab (diff) | |
download | aur-91bf6baa1e4b0fd7cbabc0b2a17e2be93411fb01.tar.gz |
fix bugs in xdroid-installer.py
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | xdroid-installer.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ md5sums=('f6941c16177c72e376ffd105677cd75c' 'e467770854d49aea2d94c451a443471e' '08c8f971fe3ae5cac148ef220975291b' '025974b0e37da69e031e6ec1e346fef8' - 'e55a42b96e3a8d975df5770e6e0bf28b') + '74c526e3fadfeb135faf1f2826daf33b') package() { #_target=${pkgdir}/opt/${pkgname} diff --git a/xdroid-installer.py b/xdroid-installer.py index ed7ee6abbab5..5fa9f0e29369 100644 --- a/xdroid-installer.py +++ b/xdroid-installer.py @@ -14,7 +14,7 @@ def install(): sys.exit(os.system('tar -xzvf /opt/xdroid-installer/xdroid.tar.gz -C /tmp \ && /tmp/xDroidInstall-x86_64/install.sh')) -if os.getuid == 0: +if os.getuid() == 0: err = "Don't run this installer as root!" if dialogs: eg.msgbox(err, "Error!") @@ -32,7 +32,7 @@ if os.path.isfile(uninstaller): if option == "Reinstall": install() - else: + elif option == "Uninstall": os.system(uninstaller) else: |