rebuildpacs: Check the binary version not just the bdep itself

Don't use internal=1 for buildinfo query, as it drops the actual
versions used. And we want to rebuild rpmlint-mini whenever an
underlying package changed (format_spec_file, polkit policies...)
This commit is contained in:
Stephan Kulow 2019-02-07 11:25:41 +01:00
parent 270f692147
commit 0a0d49bbf8

View File

@ -103,7 +103,7 @@ sub check_leaf_package($$) {
my @lines = ();
open( OSC,
"osc api /build/$project/$repo/$arch/$package/_buildinfo?internal=1|" );
"osc api /build/$project/$repo/$arch/$package/_buildinfo|" );
while (<OSC>) {
chomp;
if (m/<subpack>(.*)</) {
@ -145,8 +145,8 @@ sub check_leaf_package($$) {
}
my %torebuild;
check_leaf_package( "rpmlint", \%torebuild );
check_leaf_package( "rpmlint-mini", \%torebuild );
check_leaf_package( "rpmlint", \%torebuild );
check_leaf_package( "branding-openSUSE", \%torebuild );
check_leaf_package( "glib2-branding-openSUSE", \%torebuild );
@ -160,7 +160,6 @@ check_leaf_package( "bundle-lang-common", \%torebuild );
check_leaf_package( "bundle-lang-kde", \%torebuild );
check_leaf_package( "bundle-lang-gnome", \%torebuild );
check_leaf_package( "installation-images-openSUSE", \%torebuild );
check_leaf_package( "openSUSE-images", \%torebuild );
if (%torebuild) {
my $api = "/build/$project?cmd=rebuild&repository=$repo&arch=$arch";
for my $package ( sort keys %torebuild ) {