-
Committer:
Zygmunt Krynicki
-
Date:
2014-01-10 14:44:07 UTC
-
mto:
This revision was merged to the branch mainline in
revision
2592.
-
Revision ID:
zygmunt.krynicki@canonical.com-20140110144407-vpxwdhnxog9weg3v
plainbox:secure:rfc822: add Origin.relative_to() method
The method returns a new Origin class with source component altered to
be relative to the specified base_dir argument. This is useful for
displaying short origin specifications when the typical source contains
an absolute path to some file but the user is "close" to that file and
expects relative filenames to be displayed.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>