From a2c9b6f19c4e8669fa328757211b68fcd0243cf7 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 19 May 2005 16:40:33 +0000 Subject: Distinguished between 'paranoid' and non-paranoid add-id The paranoid adds are only used for the .be root. Paranoia is a big time-suck on Arch trees, because they require a full inventory. --- libbe/no_rcs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libbe/no_rcs.py') diff --git a/libbe/no_rcs.py b/libbe/no_rcs.py index 9e4c47b..1c02725 100644 --- a/libbe/no_rcs.py +++ b/libbe/no_rcs.py @@ -17,9 +17,9 @@ from popen2 import Popen4 import os import config -from os import mkdir, unlink +from os import unlink -def add_id(filename): +def add_id(filename, paranoid=False): """Compatibility function""" pass @@ -27,6 +27,9 @@ def delete_id(filename): """Compatibility function""" pass +def mkdir(path, paranoid=False): + os.mkdir(path) + def set_file_contents(path, contents): add = not os.path.exists(path) file(path, "wb").write(contents) -- cgit