projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0661440
)
upstreamsource: Add __repr__
author
Guido Günther
<agx@sigxcpu.org>
Tue, 30 Jun 2020 07:46:15 +0000
(09:46 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Tue, 30 Jun 2020 08:06:41 +0000
(10:06 +0200)
This eases debugging
gbp/pkg/upstreamsource.py
patch
|
blob
|
history
diff --git
a/gbp/pkg/upstreamsource.py
b/gbp/pkg/upstreamsource.py
index a312c3bb7f45918de90019f16e7b2e9093538735..384513e52ae195c1e017bbc510f44cbda069ce87 100644
(file)
--- 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.