summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/rpath.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-10-12 19:12:20 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-10-12 19:12:20 +0000
commit5a064062c2fb67661d5221f6b13ba7c74053349a (patch)
treeabf920c30a1bdef8a55877f48159f1073ddc8109 /rdiff-backup/rdiff_backup/rpath.py
parenteeb9d2e1115757342f49184d4d4acb5c75d1f8ca (diff)
downloadrdiff-backup-5a064062c2fb67661d5221f6b13ba7c74053349a.tar.gz
Added TODO item, default to None on rpath uname/gname check
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@472 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index b2f6f20..3df537a 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -450,11 +450,13 @@ class RORPath:
def getuname(self):
"""Return username that owns the file"""
- return self.data['uname']
+ try: return self.data['uname']
+ except KeyError: return None
def getgname(self):
"""Return groupname that owns the file"""
- return self.data['gname']
+ try: return self.data['gname']
+ except KeyError: return None
def hassize(self):
"""True if rpath has a size parameter"""