From 700c6735bfd206ae9173f0e2688fed5a81f10dfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Tue, 30 Jun 2020 09:46:15 +0200 Subject: [PATCH] upstreamsource: Add __repr__ This eases debugging --- gbp/pkg/upstreamsource.py | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.34.1