Marco Strigl
c1c72645ad
Merge pull request #537 from dirkmueller/master
...
[python3] release command: fix exception on missing bytearray/str decode
2019-04-26 10:02:01 +02:00
3886b95ae4
[python3] release command: fix exception on missing bytearray/str decode
2019-04-25 22:28:19 +02:00
Marcus Huewe
a3de1bdad1
Merge branch 'master' of https://github.com/lnussel/osc
...
Remove group elements during copy_pac, link_pac, aggregate_pac.
2019-04-24 20:11:50 +02:00
lethliel
1dc836f48c
open 0.166 development
2019-04-18 14:30:14 +02:00
lethliel
baf80268b7
release 0.165.0
2019-04-18 14:27:42 +02:00
Ludwig Nussel
9d4f584aeb
Also remove groups on copypac
2019-04-17 11:42:29 +02:00
Marco Strigl
1ad7f4607d
Merge pull request #531 from lethliel/fix_addGitSource_issue_507
...
[python3] fix decoding in addGitSource
2019-04-16 17:00:16 +02:00
lethliel
0d55ddc1b3
[python3] fix decoding in addGitSource
...
open the file with mode 'w' instead of 'wb'. The 'b' is not needed.
Neither in python2 nor in python3.
Fixes github issue https://github.com/openSUSE/osc/issues/507
2019-04-16 16:55:06 +02:00
Marco Strigl
393290bfe5
Merge pull request #528 from lethliel/python3_fix_bsc1129889
...
[python3] add exception if encoding fails and try ISO-8859-1
2019-04-16 15:49:29 +02:00
Marco Strigl
fc8e6f8695
Merge pull request #529 from lethliel/python3_fix_bsc1131512
...
[python3] return value when adding attrs is bytes
2019-04-16 15:41:10 +02:00
Marco Strigl
202c50be3e
Merge pull request #530 from lethliel/fix_search_sorting_bsc1129757
...
[python3] fix sorting when using osc se
2019-04-16 15:38:40 +02:00
lethliel
d10c9b4cea
[python3] fix sorting when using osc se
...
osc se did not sort the output anymore. The logic
in the existing results.sort(key=...) was wrong. Now it is using
key=itemgetter(0,1) has two columns and key=itemgetter(0) if there
is only one column.
2019-04-16 15:18:04 +02:00
lethliel
b7dea9ddcd
[python3] return value when adding attrs is bytes
...
When adding attribute with osc meta attribute <prj> -a <attr> -s '<val>'
the api call gets executed successfull but the return value needs to be
decoded to print it correctly.
2019-04-16 14:57:19 +02:00
lethliel
5841bf759f
add exception if encoding fails and try ISO-8859-1
...
In some rare cases the chardet encoding detection detects
a wrong encoding standard. Then we switch to latin-1 which
covers most if utf-8 does not work.
2019-04-16 14:40:13 +02:00
Marco Strigl
1fb2048476
Merge pull request #525 from lethliel/python3_activate_travis_tests
...
[python3] reactivate python3.x tests
2019-04-15 15:20:04 +02:00
Marco Strigl
71770555ac
Merge pull request #526 from lethliel/python3_fix_debquery_decoding
...
[python3] fix decoding issue in debquery.py
2019-04-15 15:10:21 +02:00
Marco Strigl
6c074fce20
Merge pull request #524 from lethliel/python3_packagequery_fix_decoding
...
[python3] fix decoding for packageqeury.py
2019-04-15 15:09:59 +02:00
Marco Strigl
6220711a5e
Merge pull request #523 from lethliel/python3_fetch_module
...
[python3] fetch.py python3 ready
2019-04-15 15:09:43 +02:00
Marco Strigl
2693d24a0a
Merge branch 'master' into python3_fetch_module
2019-04-15 15:09:31 +02:00
Marco Strigl
41ced89fcc
Merge pull request #522 from lethliel/python3_repodata_module
...
[python3] fix epoch encoding in repodata.py
2019-04-15 15:07:50 +02:00
Marco Strigl
19965b7a15
Merge pull request #513 from lethliel/python3_compatible_fetch_module
...
[python3] cpio.py is now a bytes only api.
2019-04-15 15:07:37 +02:00
Marco Strigl
32a28ae460
Merge pull request #493 from lethliel/python3_commandline_module
...
[python3] python3 support for commandline module
2019-04-15 15:07:24 +02:00
Marco Strigl
498bc9d44d
Merge pull request #492 from lethliel/python3_core_module
...
[python3] python3 support for core library
2019-04-15 15:07:02 +02:00
Marco Strigl
ec7945a07e
Merge pull request #491 from lethliel/python3_build_module
...
[python3] build.py with python3 (mostly bytestring)
2019-04-15 15:05:28 +02:00
Marco Strigl
05d90f9e96
Merge pull request #490 from lethliel/python3_oscssl_module
...
[python3] make oscssl.py python3 ready.
2019-04-15 15:05:04 +02:00
Marco Strigl
3ec9a57ab5
Merge pull request #485 from lethliel/python3_babysitter_module
...
[python3] babysitter.py msg and body are byte strings
2019-04-15 15:04:32 +02:00
Marco Strigl
0a1b7115b3
Merge pull request #484 from lethliel/python3_setup_module
...
[python3] setup.py now supports python3
2019-04-15 15:03:51 +02:00
Marco Strigl
0086bcfa64
Merge pull request #483 from lethliel/python3_rpmquery_module
...
[python3] rpmquery.py now python3 ready
2019-04-15 15:02:59 +02:00
Marco Strigl
5e6bcf5610
Merge pull request #479 from lethliel/python3_cmdln_module
...
[python3] enable full python3 support for man page building
2019-04-15 15:02:19 +02:00
Marco Strigl
d5108c7536
Merge pull request #464 from lethliel/python3_utils_helper
...
[python3] add helper functions for python3 support
2019-04-15 15:00:58 +02:00
lethliel
fe642db042
[python3] python3 support for commandline module
...
* use cmp_to_key from functools for python 2.7 and higer
* use self written cmp_to_key for python 2.6
* a lot of bytestring handling and decoding
2019-04-12 09:58:23 -05:00
lethliel
60c6ec2b52
[python3] fix decoding issue in debquery.py
...
name, version, release and arch are strings, not bytes
2019-04-07 14:44:25 -05:00
lethliel
d42df26cb5
[python3] reactivate python3.x tests
...
The python3.x tests were deactivated because they wouldn't have
worked anyway. This is the last PR that should be activated within
the python3 PR stack.
2019-04-07 11:48:36 -05:00
lethliel
ee694b54f2
[python3] python3 support for core library
...
* use cmp_to_key from functools for python 2.7 and higer
* use self written cmp_to_key for python 2.6
* new functions compare und cmp (used in python2 and python3)
* a lot of bytestring handling and decoding
* fix slow rbl based on f.readline(bufsize)
2019-04-07 11:14:49 -05:00
Marco Strigl
030cd69771
Merge branch 'master' into python3_build_module
2019-04-07 11:09:15 -05:00
lethliel
c235148180
[python3] now python3 ready:
...
* new function cmp (not available in python3)
* fix decoding in canonname function
2019-04-07 11:05:13 -05:00
lethliel
6c001fa64c
[python3] build with python3 (mostly bytestring)
...
* return of get_buildinfo is bytestring with python3
* other variables contain bytestrings as well now
2019-04-07 10:42:00 -05:00
lethliel
c6d3870942
[python3] fix decoding for packageqeury.py
...
name, arch, version and release need to be decoded
2019-04-07 10:31:23 -05:00
Marco Strigl
b71deaa537
Merge branch 'master' into python3_fetch_module
2019-04-07 10:25:50 -05:00
lethliel
87628a4150
[python3] fix epoch encoding in repodata.py
...
other.epoch() needs to be encoded to work with the vercmp callers.
2019-04-07 10:19:47 -05:00
lethliel
96ce14221b
[python3] fetch.py python3 ready
...
* the result of a division is a float
but we need int to continue.
* use decode_it to decode hdr.filename
2019-04-07 10:06:24 -05:00
Michael Schroeder
8b4dae21f7
Fix kiwi builds where the project does not define a path
...
In that case, the packages to setup the build environment are
taken from the repositories defined in the kiwi file. Osc did
not take into account that the build config must match this
path. So it cannot just get the build config like with normal
builds, but must use a different path.
This led to build errors on some projects like CentOS 7 which
rely on 'Order' statements from the project config.
The OBS backend already had support for this: the 'path' parameter
can be used to overwrite the project path in the _buildconfig
query. We now use this to provide the correct path if we
detect this case. (The detection is currently a heuristic
because OBS does not provide us with a clear indicator.)
2019-03-11 16:39:04 +01:00
Marcus Huewe
c39c3b8cae
Cleanup the source services execution code in do_build
...
Always error out if the source services execution failed (the old
code only errored out if the local_service_run config option was
set (this behavior was probably unintentionally introduced in commit
d3dd8539d9
('- fallback to "build
--local-package" if it does not exist instead of complaining'))).
Also, do not suppress all exceptions (if something failed in the
services execution code path, the user should be informed).
The bug was reported by darix.
2019-02-22 15:42:23 +01:00
lethliel
442a2731be
cpio.py is now a bytes only api.
...
The decoding of the header needs to be done in fetch.py
2019-02-12 14:04:42 +01:00
lethliel
93ea66b922
reopen 0.165 development
2019-02-12 09:17:05 +01:00
lethliel
4a7248562f
release 0.164.2
2019-02-12 09:11:43 +01:00
lethliel
0ab8661a8b
reworked deleterequest commit (add --all)
...
* removed superfluous parenthesis
* switched package == None to package is None
2019-02-04 14:56:20 +01:00
Marco Strigl
4b4774872e
Merge pull request #509 from adrianschroeter/deletereq
...
deleterequest for entire projects needs the --recursive option as add…
2019-02-04 14:52:25 +01:00
Marcus Huewe
82a3742bdc
Merge branch 'master' of https://github.com/dirkmueller/osc
...
Return do_prjresults error code, if called from do_results.
2019-02-04 13:22:25 +01:00
a760e2bd39
Return exitcode when "osc results" is falling through prjresults
...
Otherwise a failure from osc prjresults does not propagate
up.
2019-02-04 13:07:59 +01:00