chiark / gitweb /
ownsource: process .gitignore properly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Apr 2017 12:31:45 +0000 (13:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Apr 2017 12:31:45 +0000 (13:31 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatlib/ownsource.py

index ac467f0..135abeb 100644 (file)
@@ -103,10 +103,10 @@ class SourceShipmentPreparer():
       return []
     r = []
     for l in excl:
-      l.strip
+      l = l.strip()
       if l.startswith('#'): next
       if not len(l): next
-      r += l
+      r.append(l)
     return r
 
   def src_likeparent_git(s, src):