lethliel
ba93c3fbc6
better fix for r.readinto bug
2018-03-26 13:36:50 +02:00
lethliel
8203e3eb8e
Merge branch 'python3' of github.com:openSUSE/osc into python3
2018-03-26 11:52:18 +02:00
lethliel
3e22705fda
workaround bug in http/client.py that breaks if
...
the given buffer is 0.
2018-03-26 11:51:06 +02:00
Marco Strigl
d0a966b7e3
fix oscerr.py OutdatedWorkingCopy to use self.args
...
instead of self
2018-03-22 16:07:48 +01:00
lethliel
d438091ea2
fix osc diff -r1:2. Decode diff on output
...
remove debug print statement
2018-03-22 12:48:10 +01: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
d07d6b9b22
fix osc sr using message from changes file
2018-03-13 15:42:00 +01:00
lethliel
03097bdded
delete commented sslcertck=False setting
2018-03-12 16:31:09 +01:00
Marcus Huewe
8566d64ffd
Fix and simplify util.safewriter.SafeWriter
...
Storing the error encoding in an "encoding" attribute "breaks" the
python3 "input" function: In essence, builtin_input_impl does a
getattr(sys.stdout, 'encoding'), which returns our error encoding
instead of the "real" stdout encoding. In order to avoid this, we
store the error encoding in an "_encoding" attribute.
Making SafeWriter a new-style class simplifies the code a lot.
2018-03-12 16:22:16 +01:00
lethliel
6a1f5f78fe
real fix for chunked encoding
2018-03-12 16:19:32 +01:00
lethliel
ef2b5dd71e
temporary fix for M2Crypto chunked transfer encoding bug
2018-03-12 16:12:35 +01:00
lethliel
df6ec8d81d
adapted oscssl to new m2crypto module
2018-03-12 11:54:10 +01:00
lethliel
1c36790323
fix package listing at the end of build
2018-03-09 14:56:32 +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
b380fe1b8a
fix osc man
2018-03-08 14:33:50 +01:00
lethliel
863cf0e62b
fixed osc vc if no changes file is present
2018-03-08 12:02:20 +01:00
lethliel
245a7ef5f1
fix babysitter for failed osc api calls and empty diffs
2018-03-07 17:00:14 +01:00
lethliel
ae608d45ce
fix accecpt and decline after diff (osc rq)
2018-03-07 15:04:07 +01:00
lethliel
5aa4d06bc7
fix build with -k option
2018-03-07 14:44:49 +01:00
lethliel
5de19d75d5
raise 'fake' HTTPError 404 on offline build
2018-03-07 13:48:26 +01:00
lethliel
17afaa9f85
fix osc api, osc build with local packaes,
...
fix try parent object in fetch.py
2018-03-07 13:28:04 +01:00
lethliel
4ce9be4ca4
fixed osc build for arch, deb and rpm
2018-03-06 17:03: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
lethliel
284212a413
disable sslcertck by default, run as python3
2018-02-27 16:09:59 +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
305501f92c
Revert "handle SSL connection closing ourself as advised in boo#1068470 bye"
...
This reverts commit 0ddb598743 .
was incomplete and seems to be the wrong approach
2018-02-26 15:54:20 +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
0ddb598743
handle SSL connection closing ourself as advised in boo#1068470 bye
...
M2Crypto upstream maintainer.
Should fix hanging connections
2018-02-23 07:33:27 +01:00
lethliel
c629b9978a
reworked based on talk with Marcus:
...
* renamed mirror.py to grabber.py
* moved OscFileGraber Class to grabber.py
* in OscMirrorGroup we now use a OscFileGrabber class
* moved progressbar handling in own module (meter.py)
* simplified MGError
2018-02-21 17:04:59 +01:00
Björn Geuken
030c2a41f8
Fix typo in example for osc search
2018-02-18 21:27:22 +01:00
lethliel
4fd7c5b55c
reworked urlgrabber replacement.
...
* removed meter.py (not needed anymore. We now use
progressbar2
* removed last urlgrabber fragments
* use progressbar2 as a replacement for UrlGrabber.ProgressBar
* use streamfile in combination with progressbar to download files
2018-02-14 15:17:21 +01:00