[opensuse-buildservice] multiple PublishFilter

Hello, I am having an issue with multiple PublishFilter statements in openSUSE Leap 42.1 maintenacne. The openSUSE 42.1 release is exclusive to x86_64 (not taking into account ports). Hence in openSUSE:Leap:42.1:Update we do not publish i586 updates, despite them being built internally: $ osc meta prjconf openSUSE:Leap:42.1:Update
# we do not want to release the i586 rpms PublishFilter: .*\.i[5-6]86\.rpm
Via SLE maintenance we inherited a package that now builds a s390x.rpm: osc rdiff openSUSE:Leap:42.1/syslinux openSUSE:Leap:42.1:Update/syslinux.4742 The published s390x package caused an issue to at least one user: boo#987301 - syslinux package for s390 in repository for openSUSE Leap 42.1 x86_64 Opdate-oss https://bugzilla.opensuse.org/show_bug.cgi?id=987301 I attempted to add a second PublishFilter directive to the config:
PublishFilter: .*\.i[5-6]86\.rpm PublishFilter: .*\.s390x\.rpm
However the observed behavior with the above was that i586 and i686 were published, as reported by some user's rsync jobs going wild, while the single s390x package is filtered. It would appear that two negative PublishFilter rules overwrite one another. I am looking for a configuration where i586/i686 and s390x is filtered correctly, or an implementation in obs code if this behavior is unintended or undefined. Thanks, Andreas -- Andreas Stieger <astieger@suse.com> Project Manager Security SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Andreas Stieger <astieger@suse.com> writes:
I attempted to add a second PublishFilter directive to the config:
PublishFilter: .*\.i[5-6]86\.rpm PublishFilter: .*\.s390x\.rpm
Does that work? PublishFilter: .*\.(i[56]86|s390x)\.rpm Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Mon, Jul 04, 2016 at 11:30:34AM +0200, Andreas Stieger wrote:
I attempted to add a second PublishFilter directive to the config:
PublishFilter: .*\.i[5-6]86\.rpm PublishFilter: .*\.s390x\.rpm
However the observed behavior with the above was that i586 and i686 were published, as reported by some user's rsync jobs going wild, while the single s390x package is filtered. It would appear that two negative PublishFilter rules overwrite one another.
Yes, there's just one publish filter, but it can have multiple args: PublishFilter: .*\.i[5-6]86\.rpm .*\.s390x\.rpm (Yes, that's somewhat confusing. Sorry.) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hello, On 07/04/2016 12:05 PM, Michael Schroeder wrote:
On Mon, Jul 04, 2016 at 11:30:34AM +0200, Andreas Stieger wrote:
I attempted to add a second PublishFilter directive to the config:
PublishFilter: .*\.i[5-6]86\.rpm PublishFilter: .*\.s390x\.rpm
However the observed behavior with the above was that i586 and i686 were published, as reported by some user's rsync jobs going wild, while the single s390x package is filtered. It would appear that two negative PublishFilter rules overwrite one another.
Yes, there's just one publish filter, but it can have multiple args:
PublishFilter: .*\.i[5-6]86\.rpm .*\.s390x\.rpm
That worked without known breakage.
(Yes, that's somewhat confusing. Sorry.)
http://openbuildservice.org/help/manuals/obs-reference-guide/cha.obs.build_c... https://en.opensuse.org/openSUSE:Build_Service_prjconf#PublishFilter https://github.com/openSUSE/obs-docu/issues/30 Andreas -- Andreas Stieger <astieger@suse.com> Project Manager Security SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Andreas Stieger
-
Michael Schroeder