~kevinoid/duplicity/windows-port

Viewing all changes in revision 695.

  • Committer: Kevin Locke
  • Date: 2010-10-25 14:17:22 UTC
  • Revision ID: klocke@digitalenginesoftware.com-20101025141722-uyj7d8v2unad119b
Support systems without pwd and/or grp in tarfile

Inside tarfile this case is normally checked by the calling code, but
since uid2uname and gid2gname are called by Path without checking for
pwd and grp (and we want to support this case), remove the assertion
that these modules are defined.  When they are not, throw KeyError
indicating the ID could not be mapped.

Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: