diff contrib/sawmill/web/details.py @ 487:f208b139190b

sawmill: Made html head elements HTML 4.01 compatible. Small tweak while finding tree packager in detail view.
author Sascha Teichmann <teichmann@intevation.de>
date Sun, 26 Sep 2010 07:43:26 +0000
parents 28aa6ac933fb
children 73a2e603a23b
line wrap: on
line diff
--- a/contrib/sawmill/web/details.py	Thu Sep 23 09:59:06 2010 +0000
+++ b/contrib/sawmill/web/details.py	Sun Sep 26 07:43:26 2010 +0000
@@ -142,7 +142,7 @@
     found = None
     for d in os.listdir(TREEPKG_DIR):
         dp = os.path.join(TREEPKG_DIR, d)
-        if os.path.isdir(dp) and d == treepkg:
+        if d == treepkg and os.path.isdir(dp):
             found = dp
             break
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)