Stephan Kulow
e52dc6ce2b
Harmonize imports on using lxml for XML parsing
2022-02-18 11:16:01 +01: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
c3d9140692
suppkg_rebuild: Move to new staging api
2019-11-20 15:47:25 +08:00
b894e97359
suppkg_rebuild: decode bytes before comparing
...
Compares bytes and string in Python is different, make both are strings
before comparing.
2019-10-17 18:41:25 +08:00
Stephan Kulow
a914822c7a
Run suppkg_rebuild.py on gocd
2019-05-29 13:23:47 +02:00
5035107bee
suppkg_rebuild: Fix TypeError on python3
...
Convert all items to String in a List to fix TypeError when executing on python3.
File "suppkg_rebuild.py", line 42, in get_support_package_list
if re.match('Preinstall', line) or re.match('VM[Ii]nstall', line) or re.match('Support', line):
File "/usr/lib64/python3.6/re.py", line 172, in match
return _compile(pattern, flags).match(string)
TypeError: cannot use a string pattern on a bytes-like object
2019-05-13 18:04:22 +08:00
Stephan Kulow
595e84191e
More porting to python3
...
Travis changed default python to 3.6, which has impact on the way
flake8 checks. So make sure we run fine under flake8 of python 3
2019-04-20 21:16:50 +02:00
afe9ce7bdb
suppkg_rebuild: use the binaryverions query instead
...
view=binarylist is too expensive, use view=binaryversions instead.
2018-12-19 18:13:31 +08:00
Stephan Kulow
ea9061ccf5
Import urllib2 python agnostic
2018-11-16 09:01:45 +01:00
Jimmy Berry
6069245350
Remove SUSE copyright, warranty, and license headers.
...
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.
Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
536e17cb79
osclib/stagingapi: rename dashboard_content_* methods to pseudometa_file_*.
...
No need to be confusing and use the deprecated dashboard name.
2018-08-17 23:19:24 -05:00
Jimmy Berry
760ddf39e6
osclib/conf: decouple from StagingAPI and always fetch remote config.
...
As the remote config is no longer optional for SLE and is utilized by
openSUSE to the point were it is dangerous not to load the remote config
it should be required. Currently only certain users call apply_remote()
while this will make it built-in during construction and thus makes the
usage consistent and no longer require StagingAPI.
2018-08-16 21:53:40 -05:00
67f5d0213b
suppkg_rebuild: count Support tag also
2017-11-17 18:52:36 +08:00
d1c4801578
Another set of low-noise flake8 cleanups
2017-10-20 20:46:44 +02:00
3cf49d9556
Python 2.6+ / 3.x style except clauses
...
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
73f33aea3a
suppkg_rebuild: VMInstall is also valid on build service
2017-09-11 19:29:26 +08:00
Jimmy Berry
85dbc57f12
stagingapi: provide dashboard_content_{load,save,ensure}() and utilize.
2017-07-27 23:52:58 -05:00
61b7dd5910
Empty the supportpkg list in case no candidate
2017-06-07 18:39:12 +08:00
c969d6e2d6
Fix regression: fromstring basically returned the root of the tree
2017-06-07 18:38:06 +08:00
Jimmy Berry
2ce63658f9
suppkg_rebuild: drop unused self.debug.
2017-05-12 09:47:13 -05:00
Jimmy Berry
786f9482bd
suppkg_rebuild: drop unused get_buildinfo_version().
2017-05-12 09:47:13 -05:00
Jimmy Berry
1c6ac04fef
suppkg_rebuild: drop unused get_package_buildinfo().
2017-05-12 09:47:13 -05:00
Jimmy Berry
4a3e4cf144
suppkg_rebuild: drop unused get_source_packages().
2017-05-12 09:47:13 -05:00
Jimmy Berry
754f914373
suppkg_rebuild: utilize osc.core.rebuild().
2017-05-12 09:47:13 -05:00
Jimmy Berry
5fd21c7bb2
suppkg_rebuild: only save rebuild data if it changed.
2017-05-12 09:47:13 -05:00
Jimmy Berry
4984593f45
suppkg_rebuild: utilize stagingapi.{load,save}_file_content().
2017-05-12 09:47:08 -05:00
0fd85e18d7
Remove unused debugging output
2017-04-27 19:20:08 +08:00
12a9651661
Make sure sub-package also in the staged packages
2017-04-27 18:32:34 +08:00
663d9d6804
Drop unneeded update_suppkgs variable
2017-04-19 02:55:12 +08:00
0acf542c09
Add rebuild condition for a special case
2017-04-19 02:39:45 +08:00
e5b726dc75
Updating suppkg list anyway in case it has changed
2017-04-18 22:49:54 +08:00
5a51961421
New tool suppkg_rebuild.py
...
Rebuild staging project if it has staged support package, this tool will
trigger project rebuild when the state is stale.
2017-03-21 19:39:09 +08:00