1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-04 08:39:19 +02:00
Commit Graph

1328 Commits

Author SHA1 Message Date
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
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
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
80352cbfc7 add sendsysrq command 2018-02-09 08:50:21 +01:00
Marco Strigl
5b3d8633fa only assign issue detail if text for tag exists 2018-01-22 11:00:40 +01:00
ChrisWi
26f00c6749 change WARNING message for better understanding 2017-12-14 12:11:25 +01:00
lethliel
43be8f0e9c add meaningful error if no attribute name 2017-12-08 13:20:24 +01:00
lethliel
aa01b1c52a reopen 0.163 development 2017-12-06 10:22:15 +01:00
lethliel
067fd4cd2d release 0.162.1 2017-12-05 14:29:03 +01:00
Marcus Huewe
f698103977 Send sha256 hashes for tracked files if the wc is pulled/linkrepair
In case of a pulled/linkrepair wc, it is possible that the backend
requests a hash for a tracked file, which is neither added, restored,
nor modified. For instance, this can happen if a new file was added
to the link target. Hence, for a pulled/linkrepair wc always send
the sha256 hashes of the tracked files.
2017-12-03 15:02:22 +01:00
e818989d21 0.163 development open 2017-11-28 15:13:26 +01:00
2b0f015de0 0.162.0 2017-11-28 15:12:29 +01:00
lethliel
f0325eb0b5 added code to get the sha256 hashes of files
This is needed for a new validation of the source server.

The source server will 'ask' for the sha256 sum of files which are new or
modified and osc calculates the sha256 sums for those files and sends them
back to the server.

The server checks the sha256 sums and if dies if something is wrong.
2017-11-27 16:18:19 +01:00
Marcus Huewe
03c25eb8f9 Merge branch 'return_external_2.6_compat' of https://github.com/lethliel/osc
Workaround for python26 due to missing subprocess.check_output.

Fixes: #355 ("subprocess.check_output() not in Python 2.6")
2017-11-21 14:25:55 +01:00
lethliel
7581856d9b added compat code for python 2.6
if subprocess has no method check_output us Popen instead
2017-11-21 14:06:31 +01:00
Marcus Huewe
0f9ab38948 Merge branch 'fix_#351' of https://github.com/lethliel/osc
Fix logic for finding disabled repos in do_repositories.

Fixes: #351 ("Not all options for osc getbinaries is listed")
2017-11-09 11:56:36 +01:00
marco
12b17cfc5d consider arch when checking the disabled repos
At the moment just repo.name is considered. So if
the repo is disabled for s390 all other repo / arch
combination are not shown in the repo list.

To be able to change this r is now a list of dicts
containing the name and arch of the disabled repo.

None for repo if a complete arch gets disabled
None for arch if a complete repo gets disabled
2017-11-08 14:02:20 +01:00