[extensions-web] review: Ignore the path component of the files we're auto-approving



commit 2be5aad4bcccbe527714979516544f07a88f67a5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Apr 2 20:40:19 2012 -0400

    review: Ignore the path component of the files we're auto-approving

 sweettooth/review/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index d94951e..c631c18 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -374,7 +374,7 @@ def safe_to_auto_approve(changes):
         if filename == 'metadata.json':
             continue
 
-        name, ext = os.path.splitext(filename)
+        name, ext = os.path.splitext(os.path.basename(filename))
 
         # Harmless common metadata files.
         if name in ['README', 'CHANGELOG', 'COPYING', 'LICENSE']:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]