summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-08-08 11:35:04 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-08-08 11:35:04 +0200
commit575fc306808ea5e69712e40889a34cf2fdf90586 (patch)
treef2d2f63744105a877250f8446dfdc1f1c1f8ff04
parent5a0ae1c50be8e9f39478b688da175083cb4ef9f4 (diff)
downloadfirstaidkit-575fc306808ea5e69712e40889a34cf2fdf90586.tar.gz
firstaidkit-575fc306808ea5e69712e40889a34cf2fdf90586.tar.xz
firstaidkit-575fc306808ea5e69712e40889a34cf2fdf90586.zip
Make backup.rootpath = "" when user defines fullpath.
This is more an esthetic change. Now, when the user defines the fullpath the rootpath will be "" and not have some other value that does not relate to the fullpath.
-rw-r--r--pyfirstaidkit/interpret.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py
index 8817b04..a79ce0f 100644
--- a/pyfirstaidkit/interpret.py
+++ b/pyfirstaidkit/interpret.py
@@ -49,6 +49,10 @@ class Tasker:
self._reporting = reporting
if backups is None:
+ if fullpath:
+ # rootpath is silly if fullpath is set by user.
+ cfg.backup.rootpath = ""
+
self._backups = FileBackupStore(rootpath = cfg.backup.rootpath,
fullpath = cfg.backup.fullpath)
cfg.backup.fullpath = self._backups._path