From e4456fd18caa86f2a7d7a21df4e6a78efafbff77 Mon Sep 17 00:00:00 2001 From: "Yaakov M. Nemoy" Date: Fri, 16 Jan 2009 18:26:38 -0500 Subject: Adds sourceball fetching from packagesources to package --- base/util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'base') diff --git a/base/util.py b/base/util.py index e192b94..5f71534 100644 --- a/base/util.py +++ b/base/util.py @@ -85,6 +85,10 @@ def copytree(src, dst): cpthree(src, dst) return dst +def remove_all(i, l): + while i in l: + l.remove(i) + def one(l, f): for x in l: if f(x): @@ -105,4 +109,4 @@ def flatten(l): return acc __all__ = ['pwd', 'copy', 'with_sudo', 'with_su', 'symlink', 'move', - 'log_file', 'one'] + 'log_file', 'one', 'remove_all', 'flatten'] -- cgit