diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-08-01 04:57:04 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-08-01 04:57:04 +0000 |
commit | 2229f7c383e63da7688f8362e80a05079a30dff9 (patch) | |
tree | 3432da9789c84b6c8c9561f4bbc4124b1faef9f8 /rdiff-backup/rdiff_backup/rpath.py | |
parent | f360dbbe2f6d15fdf775f8f4550405d4fcdb2a46 (diff) | |
download | rdiff-backup-2229f7c383e63da7688f8362e80a05079a30dff9.tar.gz |
Fixed --verbosity in Main, added something to lazy?, fixed exception
in rpath.py.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@178 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index 6f9734f..bfe613d 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -775,7 +775,7 @@ class RPath(RORPath): """Make a special file with specified type, and major/minor nums""" cmdlist = ['mknod', self.path, type, str(major), str(minor)] if self.conn.os.spawnvp(os.P_WAIT, 'mknod', cmdlist) != 0: - RPathException("Error running %s" % cmdlist) + raise RPathException("Error running %s" % cmdlist) if type == 'c': datatype = 'chr' elif type == 'b': datatype = 'blk' else: raise RPathException @@ -818,4 +818,6 @@ class RpathDeleter(ITRBranch): if self.dsrp.isdir(): self.dsrp.rmdir() else: self.dsrp.delete() - + def can_fast_process(self, index, dsrp): return not dsrp.isdir() + def fast_process(self, index, dsrp): dsrp.delete() + |