chiark / gitweb /
Don't override built-in 'dir'
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 4 Nov 2013 19:01:30 +0000 (20:01 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 4 Nov 2013 19:01:30 +0000 (20:01 +0100)
fdroidserver/init.py

index e6c42da44491d78d055e3c12dc0856d2d64edf88..6cfed4cd5e0daa173d4764790c8ab226d58d17bd 100644 (file)
@@ -104,12 +104,12 @@ def main():
             aapt = os.path.join(d, 'aapt')
             break
     if os.path.isfile(aapt):
-        dir = os.path.basename(os.path.dirname(aapt))
-        if dir == 'build-tools':
+        dirname = os.path.basename(os.path.dirname(aapt))
+        if dirname == 'build-tools':
             # this is the old layout, before versioned build-tools
             write_to_config('build_tools', '')
         else:
-            write_to_config('build_tools', dir)
+            write_to_config('build_tools', dirname)
 
     # track down where the Android NDK is
     ndk_path = '/opt/android-ndk'