aboutsummaryrefslogtreecommitdiff
path: root/gbp/deb/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/deb/__init__.py')
-rw-r--r--gbp/deb/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gbp/deb/__init__.py b/gbp/deb/__init__.py
index 8015e6e1..00828cdf 100644
--- a/gbp/deb/__init__.py
+++ b/gbp/deb/__init__.py
@@ -103,4 +103,9 @@ def compare_versions(version1, version2):
return DpkgCompareVersions()(version1, version2)
+def get_vendor():
+ pipe = subprocess.Popen(["dpkg-vendor", "--query", "Vendor"], shell=False, stdout=subprocess.PIPE)
+ return pipe.stdout.readline().strip()
+
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: