Jimmy Berry
a233d19e38
osclib/core: package_binary_list: provide strip_multibuild option.
2018-04-26 22:46:56 -05:00
Jimmy Berry
0e96a64036
osclib/core: correct BINARY_REGEX by making it greedy.
...
Should not effect RPM_REGEX usage since it appends suffix.
2018-04-24 17:45:10 -05:00
Jimmy Berry
3c560d0c68
osclib/core: package_binary_list(): provide exclude_src_debug option.
2018-04-23 18:54:46 -05:00
Jimmy Berry
c6289c8516
osclib/core: provide package_list_without_links().
2018-04-17 17:31:28 -05:00
Jimmy Berry
225c398e87
osclib/core: provide source_file_load() from StagingAPI.
2018-04-16 14:59:45 -05:00
Jimmy Berry
b52f890bb9
osclib/core: provide entity_email(), modified from issue-diff.py.
2018-04-10 22:43:39 -05:00
67779dba6f
API: move fileinfo_ext[_all] from StagingAPI to core
...
These helpers can be used by other bots, like for example repo-checker,
which do not rely on the StagingAPI.
2018-03-24 13:34:44 +01:00
Jimmy Berry
056ab71426
osclib/core: maintainers_get(): utilize new group_members() function.
2018-03-06 16:42:12 -06:00
Jimmy Berry
b600860541
osclib/core: provide group_members() function.
2018-03-06 16:42:12 -06:00
Jimmy Berry
df2fd398e0
osclib/core: provide project_list_prefix().
2018-02-06 00:13:43 -06:00
Jimmy Berry
b1fd3ad49a
osclib/core: request_age() return delta and handle Request object.
...
In #1370 devel-project.py was broken since it need delta.days and uses
Request class.
2018-01-29 03:14:24 -06:00
Jimmy Berry
f11daf3d62
osclib/core: provide request_age().
2018-01-25 21:26:27 -06:00
Jimmy Berry
ce4cc65690
osclib/core: devel_project_fallback(): do not fallback if openSUSE:Factory.
2018-01-17 18:05:17 -06:00
Jimmy Berry
208af41f2d
osclib/core: provide devel_project_fallback() based on request_splitter.
2018-01-17 18:04:47 -06:00
Jimmy Berry
eeffffe7de
osclib/core: provide devel_project_get() adapted from ReviewBot.
...
Of the various implementations ReviewBot has the most functional and
correct version. Cleaned up a bit for readability.
2018-01-17 18:04:17 -06:00
Jimmy Berry
ffb81c445e
core: add memoize(session=True) to package_binary_list().
2017-08-24 21:47:09 -05:00
Jimmy Berry
702f6a6243
core.owner_fallback(): check if startswith() instead of equal.
...
This allows for cases where the requested project was something like
openSUSE:Leap:42.3:Update and the returned project was openSUSE:Leap:42.3.
With this change the fallback will be triggered and the global maintainer
will then be used.
2017-08-18 16:03:04 -05:00
Jimmy Berry
0f4abf058b
osclib/core: provide package_binary_list() to efficiently obtain binary to package map.
2017-08-04 13:17:48 -05:00
Jimmy Berry
5c364b7967
osclib/core: add package to BinaryParsed tuple.
2017-08-04 13:17:44 -05:00
Jimmy Berry
5e120a6ac4
osclib/core: provide BINARY_REGEX named group pattern and utilize.
2017-08-04 13:17:18 -05:00
Jimmy Berry
03a8666fa4
core: adapt checkrepo.get_package_list_from_repository() as binary_list().
...
- utilize osc.core.get_binarylist() instead of building query manually
- return a namedtuple for increased readability
2017-07-12 15:31:30 -05:00
Jimmy Berry
c2e950eebd
core: provide request_staged() and request_when_staged().
...
Useful for determining if a request has an open staging project review
which makes it likely that it has been staged and avoids the need to
review each staging project.
2017-07-12 15:31:30 -05:00
Jimmy Berry
d4bea1f28d
core: owner_fallback(): rework to be consistent with other functions.
2017-07-12 15:31:30 -05:00
Jimmy Berry
cf1c6f5db3
core: provide depends_on().
2017-07-12 15:31:30 -05:00
Jimmy Berry
84fc6fdc61
core: maintainers_get() provide option to get project maintainers.
2017-07-12 15:31:30 -05:00
Jimmy Berry
7c6f67979a
core: extract maintainers_get(), owner_fallback() from MaintenanceChecker.
...
Allows the code to be properly shared between checkrepo and
check_maintenance_incidents as a todo suggests. Given that the majority of
similar cases for code sharing are extension of osc.core it seems to make
sense to place them in osclib.core.
2017-07-12 15:31:30 -05:00
Jimmy Berry
c946aac3c3
core: provide target_archs().
2017-06-14 23:53:12 -05:00
Jimmy Berry
98397ea758
core: provide package_list() and utilize in issue-diff.py.
2017-06-14 23:50:28 -05:00