chiark / gitweb /
agpl.py (filez): Slightly better detection of toplevels.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 Mar 2013 00:05:01 +0000 (00:05 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 28 Mar 2013 00:14:09 +0000 (00:14 +0000)
agpl.py

diff --git a/agpl.py b/agpl.py
index b49153b..caed713 100644 (file)
--- a/agpl.py
+++ b/agpl.py
@@ -142,7 +142,7 @@ def filez(cmd):
         if z < 0: break
         f = buf[i:z]
         i = z + 1
-        if f == '.': continue
+        if f.rstrip('/') == '.': continue
         if f.startswith('./'): f = f[2:]
         yield f