429df0dc70
Add --watch for osc prjresults --xml
...
Like: osc results --watch
2018-11-06 17:07:36 +01:00
lethliel
df755b9595
switched to central decode function
...
* util/helper.py
- new decode_it function. Takes obj and checks if
it is not a str. The it tries to guess the encoding
based on the module chardet
* all other modules:
- switched from var.decode('utf-8') to decode_it(var) if
possible
2018-11-05 14:47:32 +01:00
lethliel
eca6b92443
fixed build --with / --without / --define
...
and added a 'return obj' to the decode_it function
if obj is already a string.
2018-10-30 14:40:51 +01:00
lethliel
f563d354bc
fixed osc rdiff of unknown package
2018-10-24 15:27:47 +02:00
1be86884de
add support for approved requests (requires OBS 2.10)
2018-10-18 15:27:54 +02:00
lethliel
2d1295ba1b
fixes 413 checkout deleted package
...
* altered command do_checkout
new option -D | --deleted. Can only be used with PACKAGE and needs
-o to work
* what happens:
core function checkout_deleted_package fetches the file list of the deleted
package and saves it to given destdir. If destdir is not existent it
creates the destination directory. Otherwise the files will be written
in the existing directory.
2018-10-18 15:24:05 +02:00
lethliel
f9c9c86c71
added general decode_it function
...
First it tries chardet and after that it tries the locale
2018-10-17 16:31:41 +02:00
lethliel
59b7374bbf
fix osc bl with umlaute
2018-10-17 16:12:23 +02:00
lethliel
83948a2b0a
fix osc bl
2018-10-17 15:27:22 +02:00
lethliel
c070dc3d78
fix missing decoding if output is piped to a non tty
2018-10-17 14:32:27 +02:00
e98d67cbcf
open 0.164 development
2018-10-17 10:14:58 +02:00
62af1f5336
release 0.163.0
2018-10-17 10:14:41 +02:00
lethliel
bc9ad6fe15
cleanup xpath. submit/* is ignored by the API since 2012
2018-10-17 10:12:10 +02:00
Marcus Huewe
e86d8ac188
Show diff when creating a new comment (interactive_review)
...
Note that the diff is only shown, if it was requested before (that is
the "i" command was issued). The new behavior is consistent with the
other commands like "a", "d" etc.
2018-10-17 10:04:29 +02:00
lethliel
13acdea010
fix missing newline in osc r -v
...
This adds a newline after unresolvable:. So the
messages are now well printed.
2018-10-17 10:03:06 +02:00
lethliel
c693198e46
fixed IncompleteRead(0) error on long builds.
...
catch IncompleteRead() and retry until retry_counter is
reached. Then re-raise IncompleteRead()
2018-10-17 10:01:13 +02:00
lethliel
a9fc04d996
fix set maintainer (fixes issue #452 )
2018-10-17 09:43:17 +02:00
lethliel
2b778f555d
fix getbinaries with DOD binaries
...
getbinaries of dod binaries do not have a size or mtime.
This will break. So just set to None and print unkown instead.
2018-10-16 20:54:53 +02:00
lethliel
16bcfd65a9
fix crash on empty input list / meta files
2018-08-28 15:31:06 +02:00
Luca Weiss
f8e0e2a7e0
Fix osc add
...
hashlib wants bytes, ET.tostring produces a string and not bytes
2018-04-20 08:34:39 +02:00
lethliel
b38af807fc
fix osc log (request is shown as bytes string)
...
b'rqxxxxxx' -> rqxxxxxx
2018-04-16 13:47:20 +02:00
lethliel
8a48813d8d
fixed IncompleteRead(0) error on long builds.
...
sstatus object is introduced, which holds the state
of the stream. If an incompleteRead is thrown the stream
is restarted as long as retry_count is not reached (3)
2018-04-16 13:36:59 +02:00
lethliel
4ee2e34d5f
fix commit with editors != vim
2018-04-09 12:26:11 +02:00
lethliel
e07332ac7f
fix osc lb -s and osc lbl -s
2018-03-26 14:42:23 +02:00
lethliel
73fa448528
fixed osc bl -s
2018-03-26 13:41:50 +02:00
lethliel
8f12e5b3ef
add decode_list helper function to decode a list
...
with unknown elems. If a elem is not of type str
it gets decoded (we assume it is bytes then)
2018-03-21 15:09:03 +01:00
lethliel
86e236e1cd
fix osc log with requests
2018-03-09 14:41:36 +01:00
lethliel
59584f0c00
fix edit_meta() again
2018-03-09 14:38:41 +01:00
lethliel
e1cb2dcc22
fix osc ci (creating package from working copy fails)
2018-03-09 13:58:21 +01:00
lethliel
132d04f146
fix osc metafromspec
2018-03-09 13:34:34 +01:00
lethliel
3da603bf49
fix request-uri-too-long error on large updates
...
fix osc pull
fix osc ci with orgproj
2018-03-09 11:52:56 +01:00
lethliel
3e93d6fc8c
fix creation of new meta files
2018-03-08 15:24:57 +01:00
lethliel
d846a6cf1f
support python 2.6
2018-03-08 15:19:11 +01:00
lethliel
aa7666e691
fix show_devel_project()
2018-03-08 15:09:44 +01:00
lethliel
ae608d45ce
fix accecpt and decline after diff (osc rq)
2018-03-07 15:04:07 +01:00
lethliel
c174da4174
fix commands: search, signkey, token, vc,
...
workerinfo
2018-03-05 15:15:51 +01:00
lethliel
fb784d315c
fix commands: request, rpmlintlog
2018-03-05 14:47:03 +01:00
lethliel
453c3324cb
fix commands: jobhistory, lock, maintainer, meta
...
prjresults, repourls
2018-03-05 14:07:26 +01:00
lethliel
52da9ae6aa
fix importsrcpkg
...
functions isrpm() and issrcrpm()
2018-03-05 10:47:18 +01:00
lethliel
1f4eab933c
fixed commands
...
checkconstrains, copypac, distributions
2018-03-05 10:35:38 +01:00
lethliel
3cfb9d8a78
fix commands: buildinfo, buildlog
2018-03-02 13:25:19 +01:00
lethliel
3203e89d87
fix commands: buildconfig, buildhistory
2018-03-02 11:41:51 +01:00
lethliel
e1c42f1317
fix commands: cat, diff, ci, status
2018-03-02 11:33:20 +01:00
lethliel
a0cf567b0f
more ''.join(m) fixes
...
fix prdiff_output
2018-02-28 09:36:40 +01:00
lethliel
4399316483
- fix testsuite for python2/3
...
- fix another meta = ''.join(meta)
2018-02-28 09:08:45 +01:00
Marco Strigl
cc6c643384
[python3] osc co will work with python3
2018-02-27 21:06:41 +01:00
Marco Strigl
21af7828df
Merge pull request #387 from lethliel/replace_urlgrabber
...
[python3] replace urlgrabber
2018-02-27 15:09:56 +01:00
lethliel
40ce84067e
revised modules:
...
- simplified TextMeter/pb usage
- fixed header in meter.py
- delted unused vars in function calls
- get rid of most MGErrors
- do not check for file:// in grabber.py
2018-02-27 10:37:16 +01:00
Marcus Huewe
5fb71aa6d4
Merge branch 'fix_385' of https://github.com/lethliel/osc
...
Fix for python26, since it does not support an epath/xpath like
.//entry[@hash].
Fixes : #385 ("osc 0.162.x does not work anymore on SLE11")
2018-02-23 13:29:11 +01:00
Marco Strigl
e017a8e237
do not use complex path separator fixes #385
...
This is a fix for issue #385 . osc commit breaks due to
the use of sfilelist.findall('.//entry[@hash]')
I now will iterate through the sfilelist and use
for entry in sfilelist.findall('entry'):
if entry.get('hash'):
... execute hash code ...
This is a little bit slower, but should not break
on SLE11 anymore
2018-02-23 13:24:48 +01:00