Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package obs-service-cargo_audit for
openSUSE:Factory checked in at 2021-07-22 22:43:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-cargo_audit (Old)
and /work/SRC/openSUSE:Factory/.obs-service-cargo_audit.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-service-cargo_audit"
Thu Jul 22 22:43:24 2021 rev:6 rq:907609 version:0.1.6~git0.d8133c2
Changes:
--------
---
/work/SRC/openSUSE:Factory/obs-service-cargo_audit/obs-service-cargo_audit.changes
2021-07-05 22:23:17.393578056 +0200
+++
/work/SRC/openSUSE:Factory/.obs-service-cargo_audit.new.1899/obs-service-cargo_audit.changes
2021-07-22 22:44:08.811138307 +0200
@@ -1,0 +2,10 @@
+Wed Jul 21 03:35:56 UTC 2021 - [email protected]
+
+- Update to version 0.1.6~git0.d8133c2:
+ * Allow cargo audit to auto-unpack sources
+ * Add a default srcdir parameter to cargo_audit, and make do_scan able to
unpack and scan sources
+ * Improve output and lockfile handling
+ * generate Cargo.lock from Cargo.toml if not present (#2)
+ * Update options for offline operation.
+
+-------------------------------------------------------------------
Old:
----
obs-service-cargo_audit-0.1.5~git0.01fea16.tar.gz
New:
----
obs-service-cargo_audit-0.1.6~git0.d8133c2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ obs-service-cargo_audit.spec ++++++
--- /var/tmp/diff_new_pack.5eLjxC/_old 2021-07-22 22:44:09.287137686 +0200
+++ /var/tmp/diff_new_pack.5eLjxC/_new 2021-07-22 22:44:09.291137681 +0200
@@ -22,7 +22,7 @@
License: MPL-2.0
Group: Development/Tools/Building
URL: https://github.com/openSUSE/obs-service-%{service}
-Version: 0.1.5~git0.01fea16
+Version: 0.1.6~git0.d8133c2
Release: 0
Source: %{name}-%{version}.tar.gz
BuildRequires: python3
++++++ _service ++++++
--- /var/tmp/diff_new_pack.5eLjxC/_old 2021-07-22 22:44:09.319137645 +0200
+++ /var/tmp/diff_new_pack.5eLjxC/_new 2021-07-22 22:44:09.319137645 +0200
@@ -3,7 +3,7 @@
<param
name="url">https://github.com/openSUSE/obs-service-cargo_audit.git</param>
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param>
<param name="scm">git</param>
- <param name="revision">v0.1.5</param>
+ <param name="revision">v0.1.6</param>
<param name="match-tag">v*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
++++++ obs-service-cargo_audit-0.1.5~git0.01fea16.tar.gz ->
obs-service-cargo_audit-0.1.6~git0.d8133c2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/obs-service-cargo_audit-0.1.5~git0.01fea16/do_scan.py
new/obs-service-cargo_audit-0.1.6~git0.d8133c2/do_scan.py
--- old/obs-service-cargo_audit-0.1.5~git0.01fea16/do_scan.py 2021-07-05
05:26:03.000000000 +0200
+++ new/obs-service-cargo_audit-0.1.6~git0.d8133c2/do_scan.py 2021-07-12
07:27:09.000000000 +0200
@@ -15,6 +15,7 @@
'MozillaFirefox',
'MozillaThunderbird',
'rust',
+ 'rust1.53',
'seamonkey',
'meson:test'
])
@@ -54,8 +55,9 @@
root_node = ET.parse(service).getroot()
for tag in root_node.findall('service'):
if tag.attrib['name'] == 'cargo_audit':
- return True
- return False
+ return (True, True)
+ return (True, False)
+ return (False, False)
def do_services(pkgname):
try:
@@ -107,13 +109,13 @@
print("---")
checkout_or_update(pkgname)
# do they have cargo_audit as a service? Could we consider adding it?
- has_audit = does_have_cargo_audit(pkgname)
+ (has_services, has_audit) = does_have_cargo_audit(pkgname)
if not has_audit:
print(f"??????
https://build.opensuse.org/package/show/openSUSE:Factory/{pkgname} missing
cargo_audit service")
# print(f"??????
https://build.opensuse.org/package/users/openSUSE:Factory/{pkgname}")
# If not, we should contact the developers to add this. We can
attempt to unpack
# and run a scan still though.
- unpack_depends.append(pkgname)
+ unpack_depends.append((pkgname, has_services))
else:
# If they do, run services. We may not know what they need for
this to work, so we
# have to run the full stack, but at the least, the developer
probably has this
@@ -125,8 +127,11 @@
print(f"???? running services for {pkgname} ...")
do_services(pkgname)
- for pkgname in unpack_depends:
+ for (pkgname, has_services) in unpack_depends:
print("---")
+ if has_services:
+ print(f"???? running services for {pkgname} ...")
+ do_services(pkgname)
print(f"???? unpacking and scanning {pkgname} ...")
do_unpack_scan(pkgname)