Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package obs-scm-bridge for openSUSE:Factory checked in at 2025-07-15 16:46:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/obs-scm-bridge (Old) and /work/SRC/openSUSE:Factory/.obs-scm-bridge.new.7373 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-scm-bridge" Tue Jul 15 16:46:12 2025 rev:21 rq:1293431 version:0.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/obs-scm-bridge/obs-scm-bridge.changes 2025-07-02 18:18:07.560951564 +0200 +++ /work/SRC/openSUSE:Factory/.obs-scm-bridge.new.7373/obs-scm-bridge.changes 2025-07-15 16:47:42.761199452 +0200 @@ -1,0 +2,7 @@ +Tue Jul 15 12:03:26 UTC 2025 - Adrian Schröter <adr...@suse.de> + +- 0.7.2 + * Improved error reporting of invalid files in package subdirs + * Introducing a mechanic to limit asset handling + +------------------------------------------------------------------- Old: ---- obs-scm-bridge-0.7.1.obscpio New: ---- debian.changelog debian.compat debian.control debian.rules obs-scm-bridge-0.7.2.obscpio obs-scm-bridge.dsc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ obs-scm-bridge.spec ++++++ --- /var/tmp/diff_new_pack.H3B9mM/_old 2025-07-15 16:47:43.301221972 +0200 +++ /var/tmp/diff_new_pack.H3B9mM/_new 2025-07-15 16:47:43.305222139 +0200 @@ -22,7 +22,7 @@ %define build_pkg_name build %endif Name: obs-scm-bridge -Version: 0.7.1 +Version: 0.7.2 Release: 0 Summary: A help service to work with git repositories in OBS License: GPL-2.0-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.H3B9mM/_old 2025-07-15 16:47:43.333223307 +0200 +++ /var/tmp/diff_new_pack.H3B9mM/_new 2025-07-15 16:47:43.337223474 +0200 @@ -2,8 +2,8 @@ <service name="obs_scm" mode="manual"> <param name="url">https://github.com/openSUSE/obs-scm-bridge</param> <param name="scm">git</param> - <param name="revision">0.7.1</param> - <param name="version">0.7.1</param> + <param name="revision">0.7.2</param> + <param name="version">0.7.2</param> </service> <service mode="manual" name="set_version" /> ++++++ debian.changelog ++++++ build (0.7.2) unstable; urgency=low * Update to current git trunk - add sles11sp2 build config and adapt autodetection -- Michael Schroeder <m...@suse.de> Mon, 10 Oct 2011 19:30:22 +0200 build (2011.09.26-1) unstable; urgency=low * Update to current git trunk -- Adrian Schroeter <adr...@suse.de> Fri, 01 Jul 2010 10:03:54 +0200 build (2011.07.01-1) unstable; urgency=low * Update to current git trunk -- Adrian Schroeter <adr...@suse.de> Fri, 01 Jul 2010 10:03:54 +0200 build (2010.12.15-1) unstable; urgency=low * Update to current git trunk - support bsdtar for setting up build enviroment - make expanddeps use the highest version of a package if multiple versions aver available in a repository [bnc#656599] -- Michael Schroeder <m...@suse.de> Wed, 15 Dec 2010 14:08:29 +0200 build (2010.07.28-1) unstable; urgency=low * Update to current git trunk - document --repo and --dist - update wiki links - fix bugs in repo handling - fix distribution autodetection code -- Michael Schroeder <m...@suse.de> Wed, 28 Jul 2010 12:46:52 +0200 build (2010.07.08-1) unstable; urgency=low * Update to current git trunk -- Adrian Schroeter <adr...@suse.de> Wed, 08 Jul 2010 10:03:54 +0200 build (2010.06.29-1) unstable; urgency=low * Update to current git trunk - add 11.3 config - fix repo creation in --noinit case - support ovf files directly - allow multiple --oldpackages - delta rpm support -- Adrian Schroeter <adr...@suse.de> Tue, 29 Jun 2010 10:03:54 +0200 build (2010.02.02-1) unstable; urgency=low * Update to current git trunk - Support new kiwi 4.1 schema files -- Adrian Schroeter <adr...@suse.de> Tue, 02 Feb 2010 10:03:54 +0200 build (2009.09.23-1) unstable; urgency=low * Update to current svn trunk -- Michael Schroeder <m...@suse.de> Wed, 23 Sep 2009 12:03:54 +0200 build (2009.04.20-1) unstable; urgency=low * Update to current svn trunk -- Adrian Schroeter <adr...@suse.de> Mon, 20 Feb 2009 08:27:13 +0200 build (2009.02.20-1) unstable; urgency=low * Fix kvm support together with Alexander * Support for new disturl containing a complete pointer to build service instance resource * add support for package compare to allow Build Service to drop same packages after build * image repack support from Christoph -- Adrian Schroeter <adr...@suse.de> Fri, 20 Feb 2009 08:27:13 +0200 build (2007.09.14-1) unstable; urgency=low * update to 2173: - add sl10.3 config [#310089] - also look for BuildRequires in subpackage definitions [#305568] - allow removal of more config parameters -- Michael Schroeder <m...@suse.de> Fri, 14 Sep 2007 18:27:13 +0200 build (2007.08.02-1) unstable; urgency=low * update to 1902: - support 'order' config option - support 'patterntype' config option - new setdeps() method - support for flexible query options - support 'description' query - fix bug in changelog2spec time cutoff - make debtransform understand Debtransform-Tar/Debtransform-Files-Tar/ Debtransform-Series - fix bug in substitutedeps -- Michael Schroeder <m...@suse.de> Thu, 2 Aug 2007 15:58:48 +0200 build (2007.06.13-1) unstable; urgency=low * update to 1727: - implement rpm installation order calculation in perl - make substitute code modify requires, too - add filelist query support - add prereq parsing support - speed up version comparison a bit -- Michael Schroeder <m...@suse.de> Wed, 13 Jun 2007 17:18:17 +0100 build (2007.05.10-1) unstable; urgency=low * update to 1653: - add _vendor to configs - fix deban dependency compare - allow not operator in configs - fix build from source rpms -- Michael Schroeder <m...@suse.de> Thu, 10 May 2007 20:02:29 +0100 build (2007.04.12-1) unstable; urgency=low * update to 1575: - add --root to rpm call in rpm to work around a bug in rpm [#255720] -- Michael Schroeder <m...@suse.de> Thu, 12 Apr 2007 16:22:51 +0100 build (2007.04.05-1) unstable; urgency=low * update to 1561: - support architecture dependand requires in dsc files - support "global" definitions for rpm - support vminstall config option -- Michael Schroeder <m...@suse.de> Thu, 5 Apr 2007 16:01:51 +0100 build (2007.03.12-1) unstable; urgency=low * update to r1419: - fix buildroot in debtransform call - obey version numbers when expanding -- Michael Schroeder <m...@suse.de> Mon, 12 Mar 2007 15:42:48 +0100 build (2007.03.02-1) unstable; urgency=low * update - transform suse changes file to rpm specfile format - improved debian support -- Michael Schroeder <m...@suse.de> Fri, 2 Mar 2007 21:22:41 +0100 build (2007.01.26-1) unstable; urgency=low * update to r1114 - re-add the lost unrpm script - make exclarch an array - remount root rw in xen case, needed if root is not reiserfs - add repotype/runscripts options - remove devs in sl10.1/10.2 - fix boolean test to make "00" false like rpm does - add rpm_verscmp for version comparison - runscripts - macro blocks - read_config_dist - useful xen exit status - add --kill - update 10.2 config - extend spec/dsc parser - fixed two bugs in the specfile parser -- Peter Poeml <po...@suse.de> Fri, 26 Jan 2007 14:15:22 +0100 build (2006.10.5-1) unstable; urgency=low * update for fixed XEN build -- Michael Schroeder <m...@suse.de> Thu, 5 Oct 2006 10:58:42 +0200 build (2006.8.10-1) unstable; urgency=low * update for fixed XEN build and proc mounting -- Adrian Schroeter <adr...@suse.de> Thu, 10 Aug 2006 12:01:08 +0200 build (2006.6.14-1) unstable; urgency=low * Initial release based on build-2006.6.14-5.1.src.rpm -- Rene Engelhard <rengelh...@suse.de> Thu, 22 Jun 2006 12:01:08 +0200 ++++++ debian.compat ++++++ 7 ++++++ debian.control ++++++ Source: obs-scm-bridge Section: devel Priority: optional Maintainer: Adrian Schroeter <adr...@suse.de> Build-Depends: debhelper (>= 5) Standards-Version: 3.7.2 Package: obs-scm-bridge Architecture: all Depends: obs-build, python3-yaml, libwww-perl Description: The SCM bridge used by osc and OBS server ++++++ debian.rules ++++++ #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany # This file and all modifications and additions to the pristine package # are under the same license as the package itself. # # Please submit bugfixes or commens via http://bugs.opensuse.org # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 SHELL=/bin/bash configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs make DESTDIR=$(CURDIR)/debian/obs-build install binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installman dh_link dh_strip dh_compress dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary-indep: build install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure ++++++ obs-scm-bridge-0.7.1.obscpio -> obs-scm-bridge-0.7.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/obs-scm-bridge-0.7.1/README.md new/obs-scm-bridge-0.7.2/README.md --- old/obs-scm-bridge-0.7.1/README.md 2025-07-02 13:06:20.000000000 +0200 +++ new/obs-scm-bridge-0.7.2/README.md 2025-07-15 14:02:27.000000000 +0200 @@ -69,6 +69,10 @@ * trackingbranch=BRANCH may be used to clone the branch instead of a revision. information is taken from .gitmodules if available. + * buildtype=TYPE may be used to limit asset types, the default is to download all. + Possible values are spec, dsc, fedpkg or golang. + (Parameter can be used multiple times) + Special directives for entire projects ====================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/obs-scm-bridge-0.7.1/obs_scm_bridge new/obs-scm-bridge-0.7.2/obs_scm_bridge --- old/obs-scm-bridge-0.7.1/obs_scm_bridge 2025-07-02 13:06:20.000000000 +0200 +++ new/obs-scm-bridge-0.7.2/obs_scm_bridge 2025-07-15 14:02:27.000000000 +0200 @@ -82,6 +82,7 @@ self.gsmconfig: Optional[configparser.ConfigParser] = None self.gsmpath = {} self.gsmrevisions = {} + self.asset_types_filter = [] # all by default query = urllib.parse.parse_qs(self.url[4], keep_blank_values=True) if "subdir" in query: @@ -118,6 +119,11 @@ self.trackingbranch = query['trackingbranch'][0] del query['trackingbranch'] self.url[4] = urllib.parse.urlencode(query, doseq=True) + if "buildtype" in query: + t = query['buildtype'] + self.asset_types_filter=[t[i] for i in range(len(t))] + del query['buildtype'] + self.url[4] = urllib.parse.urlencode(query, doseq=True) if self.url[5]: self.revision = self.url[5] self.url[5] = '' @@ -301,6 +307,12 @@ self.do_set_sparse_checkout(outdir) self.do_checkout(outdir, self.revision, include_submodules=include_submodules) + + def is_type_enabled(self, asset_type: str): + if not self.asset_types_filter: + return True + return asset_type in self.asset_types_filter + def do_clone(self, outdir: str, include_submodules: bool=False) -> None: self.verify_scmurl(self.scmtoolurl) if self.revision: @@ -420,6 +432,8 @@ if write_service_info: self.write_service_info() for name in os.listdir(fromdir): + if name == '_scmsync.obsinfo' or name == '_service_info': + self.die(f"the {name} file must not be part of the git repository") shutil.move(os.path.join(fromdir, name), self.outdir) shutil.rmtree(clonedir) self.clonedir = None @@ -475,6 +489,8 @@ cmd = [ download_assets ] for arch in self.arch: cmd += [ '--arch', arch ] + for asset_type in self.asset_types_filter: + cmd += [ '--type', asset_type ] if pack_directories: cmd += [ '--noassetdir', '--', self.outdir ] else: @@ -598,6 +614,10 @@ query = urllib.parse.parse_qs(url[4], keep_blank_values=True); query['arch'] = self.arch url[4] = urllib.parse.urlencode(query, doseq=True) + if self.asset_types_filter: + query = urllib.parse.parse_qs(url[4], keep_blank_values=True); + query['buildtype'] = self.asset_types_filter + url[4] = urllib.parse.urlencode(query, doseq=True) if self.add_noobsinfo: query = urllib.parse.parse_qs(url[4], keep_blank_values=True); query['noobsinfo'] = [ '1' ] @@ -639,6 +659,10 @@ query = urllib.parse.parse_qs(url[4], keep_blank_values=True); query['arch'] = self.arch url[4] = urllib.parse.urlencode(query, doseq=True) + if self.asset_types_filter: + query = urllib.parse.parse_qs(url[4], keep_blank_values=True); + query['buildtype'] = self.asset_types_filter + url[4] = urllib.parse.urlencode(query, doseq=True) if self.add_noobsinfo: query = urllib.parse.parse_qs(url[4], keep_blank_values=True); query['noobsinfo'] = 1 @@ -832,8 +856,10 @@ if get_assets: obsgit.get_assets() - obsgit.get_debian_origtar() + if obsgit.is_type_enabled('dsc'): + obsgit.get_debian_origtar() if pack_directories: - obsgit.export_debian_files() + if obsgit.is_type_enabled('dsc'): + obsgit.export_debian_files() obsgit.cpio_directories() ++++++ obs-scm-bridge.dsc ++++++ Format: 1.0 Source: build Version: 0.7.2 Binary: build Maintainer: Adrian Schroeter <adr...@suse.de> Architecture: all Standards-Version: 3.7.2 Build-Depends: debhelper (>= 4) Depends: bash, binutils, findutils, perl, tar, psmisc, libwww-perl, libxml-parser-perl, libarchive-tools, zstd, qemu-kvm ++++++ obs-scm-bridge.obsinfo ++++++ --- /var/tmp/diff_new_pack.H3B9mM/_old 2025-07-15 16:47:43.561232815 +0200 +++ /var/tmp/diff_new_pack.H3B9mM/_new 2025-07-15 16:47:43.569233149 +0200 @@ -1,5 +1,5 @@ name: obs-scm-bridge -version: 0.7.1 -mtime: 1751454380 -commit: 94d8580fc01068b19e3482121cf69e52d1af54c0 +version: 0.7.2 +mtime: 1752580947 +commit: 4c9cd6a06f2d7197ea21c3c5b26be71742a63e61