[Pkg-libvirt-commits] [Git][libvirt-team/osinfo-db][wip/watch-updates] Remove debian/get-orig-source.py and update debian/README.source
Jeremy Bícha (@jbicha)
gitlab at salsa.debian.org
Thu Jun 19 13:19:29 BST 2025
Jeremy Bícha pushed to branch wip/watch-updates at Libvirt Packaging Team / osinfo-db
Commits:
787ff30f by Jeremy Bícha at 2025-06-19T08:19:04-04:00
Remove debian/get-orig-source.py and update debian/README.source
- - - - -
2 changed files:
- debian/README.source
- − debian/get-orig-source.py
Changes:
=====================================
debian/README.source
=====================================
@@ -14,22 +14,11 @@ The changelog is generated using "gbp dch" so if you submit any
changes don't bother to add changelog entries but rather provide
a nice git commit message that can then end up in the changelog.
-It is recommended to build the package with pbuilder using:
+It is recommended to build the package with sbuild using:
- gbp builpackage --git-pbuilder
+ gbp buildpackage --git-builder="sbuild -d unstable"
-For information on how to set up a pbuilder environment see the
-git-pbuilder(1) manpage. In short:
-
- DIST=sid git-pbuilder create
- gbp clone https://anonscm.debian.org/git/pkg-libvirt/osinfo-db.git
- cd os-info-db-tools
- gbp buildpackage --git-pbuilder
-
-The upstream tarballs are not used, since they do not contain all the sources
-(reported as upstream bug https://gitlab.com/libosinfo/osinfo-db/-/issues/50).
-Hence, to generate an upstream tarball you need to use the provided
-debian/get-orig-source.py script, which will create one from the upstream git
-repository at the latest tag available.
+For information on how to set up sbuild see
+https://wiki.debian.org/sbuild
-- Guido Günther <agx at sigxcpu.org>, Wed, 2 Dec 2015 18:51:15 +0100
=====================================
debian/get-orig-source.py deleted
=====================================
@@ -1,34 +0,0 @@
-#!/usr/bin/env python3
-
-# SPDX-FileCopyrightText: 2020 Pino Toscano <pino at debian.org>
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-import os
-import subprocess
-import tempfile
-import xml.etree.ElementTree as ET
-
-import git
-
-OSINFO_DB_REPO = 'https://gitlab.com/libosinfo/osinfo-db.git'
-
-scriptdir = os.path.dirname(os.path.realpath(__file__))
-uscan_args = ['uscan', '--dehs', '--skip-signature',
- '--watchfile', os.path.join(scriptdir, 'watch')]
-uscan_proc = subprocess.run(uscan_args, stdout=subprocess.PIPE,
- stderr=subprocess.DEVNULL)
-uscan_xml = uscan_proc.stdout.decode('utf-8')
-root = ET.fromstring(uscan_xml)
-upstream_version = root.find('upstream-version').text
-print('Downloading version {} ...'.format(upstream_version))
-
-with tempfile.TemporaryDirectory() as tmpdir:
- repo = git.Repo.clone_from(OSINFO_DB_REPO, os.path.join(tmpdir, 'git'))
- tmparchive = os.path.join(tmpdir, 'archive.tar')
- with open(tmparchive, 'wb') as tmpfile:
- repo.archive(tmpfile, treeish='v{}'.format(upstream_version),
- prefix='osinfo-db-{}/'.format(upstream_version))
- outarchive = 'osinfo-db_0.{}.orig.tar.xz'.format(upstream_version)
- with open(tmparchive, 'r') as tmpfile, open(outarchive, 'w') as outfile:
- subprocess.run(['xz', '-c'], stdin=tmpfile, stdout=outfile)
- print('Written {}'.format(outarchive))
View it on GitLab: https://salsa.debian.org/libvirt-team/osinfo-db/-/commit/787ff30f17658ac3f454525eafebb727ec1d15ab
--
View it on GitLab: https://salsa.debian.org/libvirt-team/osinfo-db/-/commit/787ff30f17658ac3f454525eafebb727ec1d15ab
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20250619/44c23b0e/attachment-0001.htm>
More information about the Pkg-libvirt-commits
mailing list