Stefan Knorr
b14c9cfd92
Add "prioritize" as (preferred) alias for "priorize" command
...
"priorize" is not an English word, "prioritize" is the correct
version:
* https://www.merriam-webster.com/dictionary/priorize
* https://www.merriam-webster.com/dictionary/prioritize
The "priorize" command will continue to exist after this commit, but the
documented version will be "prioritize".
2019-05-24 13:22:30 +02:00
Marco Strigl
c4979dcde2
Merge pull request #562 from lethliel/fix_status_outupt_of_attribute_deletion
...
[python3] fix outupt of status on attribute deletion
2019-05-22 13:08:43 +02:00
lethliel
1ab68d3bfb
open 0.165.2 development
2019-05-22 13:00:55 +02:00
lethliel
260d5f585a
fix outupt of status on attribute deletion
...
On osc meta attribute --attribue <name> --delete the returned
data is encoded. Therefore the sys.stdout.write(data) call fails.
Solution: Decode data
--> sys.stdout.write(decode_it(data))
2019-05-22 12:57:02 +02:00
lethliel
8b56405d10
release 0.165.1
2019-05-20 08:35:27 +02:00
Marcus Huewe
6fe6dbc724
Merge branch 'fix_broken_caller_logic_for_getbinaries' of https://github.com/lethliel/osc
...
Fix "--quiet" option in do_getbinaries.
2019-05-16 16:45:14 +02:00
lethliel
860548bc30
fix getbinaries in commandline (progress_meter)
...
change progress_meter = opts.quiet to
progress_meter = not opts.quiet
2019-05-16 15:21:16 +02:00
lethliel
5bd5fdb22c
Revert "fix getbinaries quiet logic"
...
This reverts commit 82ac5f6f06
.
2019-05-16 09:31:38 +02:00
Marco Strigl
8c14208ad0
Merge pull request #555 from lethliel/fix_get_binaries_quiet_logic
...
fix getbinaries quiet logic
2019-05-15 17:29:16 +02:00
lethliel
82ac5f6f06
fix getbinaries quiet logic
...
opts.quiet is passed to get_binary_file which is False by default.
So the following if progress_meter is always False unless -q is given.
So it needs to be if not progress_meter.
2019-05-15 17:22:51 +02:00
Marco Strigl
3266e43164
Merge pull request #551 from lethliel/python3_fix_add_directory
...
[python3] fix adding dirs as compressed archive
2019-05-14 15:23:52 +02:00
lethliel
597eadf2f4
fix adding dirs as compressed archive
...
The content in the todo dict are strings. In python3 the communicate
method expects a bytes-like object not a string.
Solution: Encode every element in todo to a new dict (enc_todo) and
pass this instead of todo
2019-05-14 10:24:17 +02:00
Marco Strigl
53d3cc7bb5
Merge pull request #550 from lethliel/python3_fix_get_commitlog
...
fix get_commitlog to decode correct.
2019-05-14 10:08:16 +02:00
lethliel
03777b7e4d
fix get_commitlog to decode correct.
...
get_commitlog mixes bytes and strings when the output is
xml or csv.
This is fixed by decoding the commit message before replacing chars.
2019-05-14 10:01:02 +02:00
Marco Strigl
c5139fdff8
Merge pull request #538 from lethliel/fix_unimported_urldefrag
...
Import urldefrag function
2019-04-26 12:14:15 +02:00
lethliel
9aba391a11
Import urldefrag function
...
The function was not imported and so osc crashed when executed behind a proxy
2019-04-26 10:49:03 +02:00
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