diff options
author | Guido Günther <agx@sigxcpu.org> | 2020-06-30 09:46:15 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2020-06-30 10:06:41 +0200 |
commit | 700c6735bfd206ae9173f0e2688fed5a81f10dfd (patch) | |
tree | f1ca02d2ea676ccc4b12db200046a1f922f62afa | |
parent | 0661440c9b1493ff8a5e7a6283f9eca1c9e192f9 (diff) |
upstreamsource: Add __repr__
This eases debugging
-rw-r--r-- | gbp/pkg/upstreamsource.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/pkg/upstreamsource.py b/gbp/pkg/upstreamsource.py index a312c3bb..384513e5 100644 --- a/gbp/pkg/upstreamsource.py +++ b/gbp/pkg/upstreamsource.py @@ -50,6 +50,12 @@ class UpstreamSource(object): if self.is_dir(): self.unpacked = self.path + def __repr__(self): + path = "'%s'" % self.path if self.path is not None else None + sig = "'%s'" % self.signaturefile if self.signaturefile is not None else None + return "<%s path=%s signaturefile=%s>" % (self.__class__.__name__, + path, sig) + def _check_orig(self): """ Check if upstream source format can be used as orig tarball. |