Dirk Müller
730630f06f
Use f-strings where possible
2024-05-07 21:52:32 +02:00
Dirk Müller
8d164e7301
Use "not in" not "not X in"
2024-05-06 19:29:13 +02:00
Fabian Vogt
f1f00783af
osclib/repochecks.py: Use libsolv for checking conflicts between packages
...
Don't rely just on findfileconflicts to check whether packages have
conflicting dependencies, but use libsolv to do a full check.
Fixes #1885
2024-02-22 15:58:16 +01:00
Fabian Vogt
b658cefdae
osclib/repomirror.py: Small cleanups
2023-12-01 14:52:01 +01:00
Fabian Vogt
da0d632b77
Rewrite bs_mirrorfull as osclib component
...
This has multiple benefits:
* Easier to interface with the python code that calls it
* Uses the osc python interface for connection and authentication handling
* Allows to drop the bundled OBS code in the bs_copy directory
2023-11-29 16:53:58 +01:00
Fabian Vogt
dc4c6bbfdd
Handle ZSTD compressed primary.xml.zst
...
Add explicit zstd support to repo2fileprovides.py and port
update_repo_handler.py over to use libsolv's transparent decompression.
2023-11-23 11:36:03 +01:00
Fabian Vogt
352ca7c9f3
Don't crash when trying to fetch owner for 404 devel prjs
...
openh264 is very special.
2023-08-29 10:14:26 +02:00
92425abcab
version_calculate: chdir to the osclib dir
...
version_calculate() calls describe in the current working dir, but that fails in
git repositories without any commits in them. Actually we should be calling this
in the osc-release-tools repository instead, hence fixing this issue.
2023-08-15 11:45:42 +02:00
2d37d5b276
Merge pull request #2990 from dcermak/fix-sle15-literal-import
...
Fix sle15 literal import
2023-07-21 17:18:20 +02:00
33cd1998aa
Fallback import Literal & TypedDict from typing_extension
2023-07-14 15:11:35 +02:00
d257369bec
stagingapi: fix execution with OSC 1.x
...
osc 1.0 changed the behavior of delete_project. Older versions considered
'force' to imply recursive, new versions want this explicitly.
Fixes https://github.com/openSUSE/openSUSE-release-tools/issues/2928
2023-07-13 08:19:34 +02:00
1703348adb
Remove unused variable
2023-06-29 11:27:25 +02:00
05711eeccd
Convert namedtuples into a typed NamedTuples
2023-06-29 11:27:24 +02:00
e842fd26b1
Add some type hints
2023-06-29 11:27:23 +02:00
Fabian Vogt
1d1a84e4e3
cleanup_rings.py: Add snobol4 to whitelist
...
Work around OBS not listing file deps in fileinfo_ext.
2023-04-11 10:50:58 +02:00
Fabian Vogt
641f65cb1d
osclib: Skip debuginfo, debugsource and src rpms in fileinfo_ext_all
...
Makes it somewhat faster.
2023-03-28 12:39:24 +02:00
Fabian Vogt
e9e881f4f1
Remove try/catch around code which must not fail
...
If a failure is ignored here we'd ignore important dependencies.
2023-03-28 12:39:24 +02:00
Fabian Vogt
8af5fcf9f2
Rewrite core algorithm of cleanup_rings.py
...
Previously it went through each package's provides->required_by chain.
This does not deal with cycles correctly and there was only a hack to deal
with single-package cycles.
Instead, recursively walk through all required packages, starting from the
build enabled images and take note of all needed source packages.
This also handles _multibuild flavors as separate packages.
2023-03-28 12:39:24 +02:00
Fabian Vogt
8a3389e4ac
cleanup_rings.py: Fix links handling
...
A dict mapping linked package to linking package won't work, there are multiple
linking packages which previously overwrote each other. Turn it around.
2023-03-24 10:25:57 +01:00
Fabian Vogt
74c6f46a99
cleanup_rings.py: Expand whitelist
...
No false positives anymore.
2023-03-22 17:06:48 +01:00
Fabian Vogt
47cc8919c0
cleanup_rings.py: Look at all enabled images
...
Don't just hardcode the openSUSE Test DVD.
2023-03-22 17:06:48 +01:00
Fabian Vogt
2c0e252832
Merge pull request #2923 from dirkmueller/deprecation_warning_osc1x
...
Add explicit deprecation warning
2023-01-25 19:20:26 +01:00
61fdf0f790
Merge pull request #2914 from DimStar77/tweak
...
accept_command: cleanup redundant ports_prjs assignment
2023-01-25 18:46:11 +01:00
1a368a38e7
Add explicit deprecation warning
2023-01-25 18:42:54 +01:00
8f97c9f36a
Restore old xpathsearch for fullhistory searches
2023-01-25 16:59:34 +01:00
5633240621
accept_command: cleanup redundant ports_prjs assignment
2023-01-18 13:02:53 +01:00
7d40d8668e
staging_accept: update Factory version in LegacyX86 port on accept
2022-11-30 14:38:25 +01:00
Enno Gotthold
20123a357a
osclib: Correct syntax error in typing
2022-10-17 14:32:19 +02:00
Enno Gotthold
f62c1332ee
osclib: Submit summary-staging.txt to the devel project
2022-10-17 14:32:19 +02:00
Enno Gotthold
04a6860c6d
osclib: Add typehints
2022-10-13 15:12:54 +02:00
Stephan Kulow
5e2a171600
Merge pull request #2877 from SchoolGuy/add_typing_hints
...
Add typing hints
2022-10-13 15:03:54 +02:00
Enno Gotthold
b9c84c5063
pkglistgen: Convert sections to class
2022-10-13 14:46:33 +02:00
Enno Gotthold
fac26fc6f4
osclib: Add type annotations
2022-10-13 14:46:33 +02:00
Stephan Kulow
a99f61d658
Fix the syncing of rebuild failures for multibuild flavors
...
Otherwise we don't notice test suites failing that were split out
2022-10-12 09:15:04 +02:00
b40d8c0053
Fix E275: missing whitespace around keywords
2022-08-18 11:05:55 +02:00
Stephan Kulow
9f802cc1cd
Fix cache handling with osc from git master
...
osc master no longer wraps urlopen, so use the underlying function
2022-08-08 17:32:18 +02:00
e6de6a60d4
freeze: always disable images repository after freeze
...
After freeze, /standard needs to rebuild, which then triggers
the pipelines to perform installcheck, recalculate the media and
enable build of /images.
Fixes issue#2817
2022-06-20 16:55:53 +02:00
Stephan Kulow
de6a64c464
accept: Catch requests without description
...
Fixes #2799
2022-04-08 08:06:17 +02:00
Stephan Kulow
66bd39eab5
Accept_command: create set_bugowner requests
2022-04-05 19:00:05 +02:00
Stephan Kulow
27c4ae0a06
Don't play with the publish flag on freeze, images only switches build flag
...
Fix #2789 differently
2022-04-04 16:56:41 +02:00
Stephan Kulow
044f19b7dc
Keep images repository disabled on freeze command
...
Fixes #2789
2022-04-01 10:45:48 +02:00
Stephan Kulow
6773c20695
Fix adi projects having no archs
2022-03-30 10:48:08 +02:00
Stephan Kulow
a0418aa4a0
Use all staging archs in adi projects
...
This replaces #1304 with a more brute force approach to fix not only
32bit libs but all failures we see on i586. We waste so much energy
retrying failed builds, it's really not worth it not trying i586 on
adi.
2022-03-29 13:55:58 +02:00
Stephan Kulow
fb6f4798a7
Extend build-fail-reminder to notify about uninstallable packages
2022-03-28 12:02:38 +02:00
Stephan Kulow
6f1314730c
Stay with minversion 3.6 (and require module we already use elsewhere)
...
Fixes #2770
2022-03-25 09:43:56 +01:00
Stephan Kulow
ca27641a46
Fix staging accept approving package list changes
...
The order is important, look at the comments *before* deleting them
2022-03-24 16:33:15 +01:00
Stephan Kulow
f414161a1e
Remove unused repo_checker config entries
2022-03-24 08:05:34 +01:00
Stephan Kulow
d01f79dc97
Small fixes for staging-installcheck
...
While I tried to enable rpmlint log parsing I refactored the config
handling. No harm done to leave that
2022-03-23 16:12:05 +01:00
Stephan Kulow
ce6112be09
Add some documentation for pkglistgen staging workflow
...
While writing it, I noticed that 'approve' also needs to change the exit
value of the pkglistgen pipeline step - fixed
2022-03-23 09:55:42 +01:00
Stephan Kulow
da3b74dba1
accept: Create pkglistgen .changes entry and commit
2022-03-22 13:42:49 +01:00