38 Commits

Author SHA1 Message Date
Stephan Kulow
75c001c96d
Merge pull request #2520 from coolo/fix_2517
pkglistgen: Check the return code of Popen calls
2021-01-19 16:21:22 +01:00
Stephan Kulow
279c95eaf9 pkglistgen: Check the return code of Popen calls
Not updating the product in case of failure is preferred over creating
bogus products

Fixes #2517
2021-01-19 11:41:21 +01:00
Stephan Kulow
2bb1d8a1ce pkglistgen: Allow to set require_all for some groups to disable ignore
For Factory we want the DVD to catch all (and only require some), but the
smaller products kubic and microos should have a require all policy
2021-01-15 15:52:54 +01:00
3e70de6f4a Check for 'weakremovers.inc' in in group_dir before attempting to move it
Signed-off-by: Egbert Eich <eich@suse.com>
2020-05-02 11:43:19 +02:00
32ad0adc2d Fix all E22x errors
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
Stephan Kulow
657d2c87d9 Fix conflicts/obsoletes while picking dependencies
We ignored conflicts/obsoletes during pool preparation as it got
into the way of finding supplements (due to conflicting packages in
the list). But this way, conflicts were invisible also during dependency
search, leading to wrong packages picked for the package lists in
general.

So add a flag to prepare_pool to explain if we want conflicts or not
2019-11-05 09:39:10 +01:00
7b8d295abd pkglistgen: fix wrong parsing way on pkglistgen-locale
Since the data is from project attribute, pkglistgen should not parsing a string.
This change also renamed pkglistgen-local to pkglistgen-locale.
2019-10-15 19:17:57 +08:00
Stephan Kulow
778e82b044 Fix some python2/python3 confusion with pkglistgen (for sle) 2019-07-05 09:47:57 +02:00
Stephan Kulow
29bd141145 Sort architectures to fix #2021 2019-05-16 07:30:21 +02:00
Stephan Kulow
1b20c92d41 pkglistgen: Output strings on the console 2019-05-15 08:49:30 +02:00
Stephan Kulow
c043a2d537 Even more fixes for pkglistgen on python3 2019-05-13 14:09:57 +02:00
Stephan Kulow
df8de99945 Even more python3 fixes for pkglistgen 2019-05-13 08:57:34 +02:00
Stephan Kulow
d0eef97d27 Fix problems with pkglistgen under python3 2019-05-12 21:22:07 +02:00
Stephan Kulow
fec762e5a4 Avoid warning on using .warn (python3) 2019-05-11 14:25:02 +02:00
Stephan Kulow
57f15a4609 Avoid gocd warning on 9 minutes without print
the weak remover code is a little slow, but it's also a lot of data
2019-03-20 15:04:23 +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
d2f1832a44 Set some version for staging projects 2019-01-17 15:06:28 +01:00
Stephan Kulow
998e645bd3 Revert the change to copy_files 2019-01-17 15:06:28 +01:00
Stephan Kulow
1bae4083b2 Don't hardcode architectures - take it from the project 2019-01-17 15:06:28 +01:00
Stephan Kulow
3d387a5829 pkglistgen: Replace empty version with OSRT:ProductVersion 2019-01-17 15:06:28 +01:00
Stephan Kulow
62f1343df2 pkglistgen: require set_namespaceproviders for now (it's old enough) 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
05c0403a47 pkglistgen: Don't update 000package-summary anymore, but diff 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
15f7e3d9f2 pkglistgen: Move one more function to solv_utils 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
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
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