38 Commits

Author SHA1 Message Date
6d3b8a886e
pkglistgen: cli: Explicitly enable product-composer instead of detecting directories. 2024-06-10 10:05:42 +02:00
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
cf36ceb5b8
Add support for git project handling
Automatically switches over from OBS api calls to git
when specifing a git repository on CLI
2024-05-07 16:22:21 +02:00
9b449f91cb
Initial support for productcompose files
It requires to have a "default.productcompose" file in 000package-groups
to enable support for real
2024-05-07 16:22:12 +02:00
9e328db488 Changes to avoid parallel execution issue on SLSA services
- Create custom-cache-tag for pkglistgen to enable separate cache dir
  name in case of parallel running
- Add custom-cache-tag to SLSA services
- Check for systemd service instead of process to ensure that SLSA
  services will not run in parallel
- Change pkglisgen timer to avoid overlap with relpkggen timer
2024-02-15 12:25:42 -03:00
Enno Gotthold
4d15d19f2d
pkglistgen: Add type annotations 2022-10-13 14:46:33 +02:00
Stephan Kulow
378a00af51 pkglist: Don't exit with 0 if the stagings didn't calculcate lists 2022-03-11 15:42:56 +01:00
Stephan Kulow
b93adbd9c1 pkglistgen: Fix exit values - True is actually bad 2022-03-05 15:58:20 +01:00
Stephan Kulow
1870e989a4 pkglistgen: Only solve one project at a time
As we deprecated 'all' we can just as well rely on only one project
given (which is also what we do in gocd) to ease error reporting.

The old method of running all projects in a loop stemed from the
old pkglistgen not having a scheduler so we relied on serial execution.
2022-03-05 08:21:19 +01:00
Stephan Kulow
93564783fe pkglistgen: Fix invalid import 2022-03-04 12:32:48 +01:00
Stephan Kulow
313908293f pkglistgen: Deprecate scope 'all'
Within gocd we run each job on its own worker and don't rely on builtin
loop. So no need to care for a remote config
2022-03-04 11:27:12 +01:00
Stephan Kulow
7b329f1a57 pkglisten: Add option to remove refresh from target
- store new files in zstd compression

Fixes #2693
2022-02-24 11:44:17 +01:00
Stephan Kulow
f38bd3a7ed Target E128 - Continuation line under-indented for visual indent
https://www.flake8rules.com/rules/E128.html
2022-02-18 17:35:33 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
8c963bf3eb pkglistgen: Add a way to merge files from 000update-repos 2021-06-18 08:45:12 +02:00
Stephan Kulow
e4215b5b83 Take pkglistgen from git - avoid deployment loop 2019-05-30 09:26:44 +02:00
Stephan Kulow
b75f6c7f49 pkglistgen: Don't upper case the staging letter 2019-03-11 15:19:43 +01:00
ea93ca27df fix incompatible repo id tagging for openSUSE products 2019-01-30 15:09:58 +01:00
Stephan Kulow
dff9bddfc4 Replace weakremovers.inc in 000release-packages
But skip it during --only-release-packages as we have to assume the
binaries aren't final
2019-01-21 16:55:19 +01:00
Stephan Kulow
f7a2d50490 Handle weakremovers.inc special 2019-01-19 19:50:23 +01:00
Stephan Kulow
84445efb65 Fix handle_update_repos for Factory and leap 2019-01-19 12:43:24 +01:00
Stephan Kulow
a26301bfa1 pkglistgen: Reset the tool between projects
So far I only cared for single projects, but never tested all staging
projects in a loop while developing, so I didn't notice the problem
2019-01-17 20:39:02 +01:00
Stephan Kulow
1bae4083b2 Don't hardcode architectures - take it from the project 2019-01-17 15:06:28 +01:00
Stephan Kulow
240e1d00e1 pkglistgen: Add all recommends and supplements
This adds packages that supplement one of the locales only
2019-01-17 15:06:28 +01:00
Stephan Kulow
0ec9983825 pkglistgen: Move droplist generation aside
We will move this to a seperate step after the migration
2019-01-17 15:06:28 +01:00
Stephan Kulow
902627c14c pkglistgen: Fix test failures (including flake8) 2019-01-17 14:35:18 +01:00
Stephan Kulow
e44bbf78cc pkglistgen: Write group stubs for --only-release-packages 2019-01-17 14:35:18 +01:00
Stephan Kulow
49a7a66144 pkglistgen: Trim down CommandLine interface to the minimum 2019-01-17 14:35:18 +01:00
Stephan Kulow
f087f56a71 pkglistgen: Introduce file_utils functions 2019-01-17 14:35:18 +01:00
Stephan Kulow
1ec04565e3 pkglistgen: Move dump_solv into its own file 2019-01-17 14:35:18 +01:00
Stephan Kulow
1a3ffa1576 pkglistgen: move do_solve into tools class
(no longer a command used on its own good)
2019-01-17 14:35:18 +01:00
Stephan Kulow
d04f347a74 pkglistgen: Bugfixes for create_sle_weakeremovers 2019-01-17 14:35:18 +01:00
Stephan Kulow
4ab866cb2c pkglistgen: move create_sle_weakremovers to tool class 2019-01-17 14:35:18 +01:00
Stephan Kulow
5729439e0f pkglistgen: Drop list commands
They were mainly used for initial conversion of leap
2019-01-17 14:35:17 +01:00
Stephan Kulow
3b7d7dea8f pkglistgen: Drop update command
The commands using the repos update themselves
2019-01-17 14:35:17 +01:00
Stephan Kulow
8351d2e677 pkglistgen: Move suggested from global to package level
There is no product that wants all suggests for all products on all groups,
so the only product left that wants to have suggests is Tumbleweed for the DVD
pattern

To solve the suggests we run a global transaction on the
result + its suggests to determine packageand supplements.
To avoid problems (in general) we discard obsolete and conflicts
in packages - so we can have product groups with conflicting packages
and still get the additional supplements
2019-01-17 14:35:17 +01:00
Stephan Kulow
33d4e2ae21 pkglistgen: Take the architectures from tool not opts 2019-01-17 14:35:17 +01:00
Stephan Kulow
ab85d07f72 pkglistgen: Move into a folder and split into 3 files
No further refactoring, but some cleanup of imports (which obviously has
dangers in itself)
2019-01-17 14:35:17 +01:00