25 Commits

Author SHA1 Message Date
Stephan Kulow
fb6f4798a7 Extend build-fail-reminder to notify about uninstallable packages 2022-03-28 12:02:38 +02:00
Stephan Kulow
54079e949f Target E202 - Whitespace before ')'
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
d39eca2885 Fix the only offense of E731 2021-09-22 21:51:24 +02:00
Jimmy Berry
81f8807cda osclib/util: provide rmtree_nfs_safe().
Still occurs and when in obs_operator context is even more annoying.
2019-09-18 21:10:49 -05:00
Stephan Kulow
58089794f9 Deduplicate the 2 mail sending functions
I went with introducing mail_send_with_details and make mail_send
a wrapper around it
2019-09-02 16:52:09 +02:00
Jimmy Berry
14ae392743 osclib/util: correct python3 port by casting to list directly after filter.
8bf2602 cast to list during on the return line, but that does not work
if a project_suffix is present.
2019-05-22 20:32:33 -05:00
Stephan Kulow
7d0cad0e66 sha1_short: support bytes and str 2019-05-16 08:02:36 +02:00
Jimmy Berry
7a1ff946cd osclib/util: sha1_short(): encode data as utf-8 [python3]. 2019-05-15 21:00:11 -05:00
Stephan Kulow
8bf2602baa family_prior: Cast the filtered list to a list 2019-04-30 14:28:49 +02:00
Jimmy Berry
0c1fa52c54 osclib/util: mail_send(): allow a from_key of None to indicate osc user. 2019-03-06 15:49:50 -06:00
Jimmy Berry
4dbcc5bc40 osclib/util: mail_send() utilize Config.get() pattern. 2019-03-06 15:49:50 -06:00
Jimmy Berry
58bffc3e01 osclib/util: mail_send(): use to as config key if no at sign. 2019-03-06 15:49:50 -06:00
Jimmy Berry
44f5ab7234 osclib/util: project_version(): return 0 instead of None for invalid project.
This allows for lists with invalid projects to still be sorted which is
generally desired since other means validate the results.
2019-02-15 14:16:23 -06:00
Jimmy Berry
e686cb19cc osclib/util: provide project_list_family_prior_pattern(). 2019-02-15 14:16:23 -06:00
Jimmy Berry
5f15314f33 osclib/util: project_list_family_prior(): provide include_updates option. 2019-02-15 14:16:23 -06:00
Jimmy Berry
087c1b0b8b osclib/util: project_list_family(): cache via memoize. 2019-02-15 14:16:23 -06:00
Jimmy Berry
f13899e393 osclib/util: project_list_family(): provide include_update option. 2019-02-15 14:16:23 -06:00
Jimmy Berry
2ca2f4e875 osclib/util: project_list_family(): handle :NonFree suffix. 2019-02-15 14:16:23 -06:00
Stephan Kulow
53595a24bf droplist: Ignore Leap:15.1 for Leap:15.1:ARM
The heuristic calculating the product family doesn't really work
for ports, so give the tool some hints in the config. And as 15.1
doesn't have a baseurl yet, we need to give 15.0 one specifically.
2018-12-04 07:42:33 +01:00
Jimmy Berry
341301fd0d osclib/util: provide sha1_short() adapted from repo_checker. 2018-08-21 20:47:37 -05:00
Jimmy Berry
9a633ec26f osclib/util: provide mail_send(), modified from announcer.py.
Depend on config for relay, from, and followup-to.
2018-04-10 22:51:28 -05:00
Jimmy Berry
78c87be188 osclib/util: project_list_family_prior(): provide last parameter. 2018-02-12 17:55:39 -06:00
Jimmy Berry
47bc54daae osclib/util: project_list_family(): handle IBS SLE naming style. 2018-02-12 17:31:26 -06:00
Jimmy Berry
c57afdd258 osclib/util: provide project_list_family* and project_version(). 2018-02-06 00:13:43 -06:00