pass cmake parameters, name, email, build dir to auto-debuild; ignore debian/ folder...
[mass-build.git] / vcs.py
diff --git a/vcs.py b/vcs.py
index 893a75f159832a4e84dd49ee394a0acdbab7ebd1..c63b2b955985d6e5e76b2c755f2b32f688bad275 100644 (file)
--- a/vcs.py
+++ b/vcs.py
@@ -52,6 +52,13 @@ class Git:
                if v.startswith('v'): v = v[1:]
                return v
 
+       def ignore(self, name):
+               with open(os.path.join(self.folder, '.git', 'info', 'exclude'), 'r+') as f:
+                       for line in f:
+                               line = line.replace('\n', '').replace('\r', '')
+                               if line == name: return # is already ignored
+                       print >>f, name # add ignore line
+
 class KDEGit(Git):
        def __init__(self, folder, name, commit):
                Git.__init__(self, folder, 'kde:'+name, commit)