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

1357 Commits

Author SHA1 Message Date
Michael Schroeder
035cd54626 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-04-05 13:45:38 -05:00
lethliel
8851ac7afe fix sorted call on objects (__cmp__ not supported)
fix slowdown of rbl due to f.readline(bufsize) handling.
2019-03-06 15:24:26 +01:00
lethliel
7dba86ce41 bugfix for broken canonname
b'name'-b'version'-b'release'-b'arch'.rpm --> name-version-release-arch.rpm

* switch shebang to #!/usr/bin/python3 for osc-wrapper.py
* switch regex string to b''
2019-02-14 15:05:07 +01:00
Marcus Huewe
40033cd39b Avoid a potential http request if there are no services
The vc_export_env call was introduced in commit
37ca5535ce ("Export vc env vars when
running a source service") and broke the testsuite. The potential
http request is useless if there are no services. Hence, avoid it.

Thanks to Marco Strigl for catching the testsuite error!
2019-02-08 11:38:42 +01:00
Marcus Huewe
b4e66830d2 Export vc env vars when running a source service
Some services (like the obs_scm) will use them. Note: if realname
or email is not set in the oscrc, an additional http request will
be performed.

This change was requested by darix.
2019-02-08 11:38:15 +01:00
Marcus Huewe
9e8298d8c3 Move vc env exporting code into core.vc_export_env
This allows for reuse. In the future, these variables should also
be exported when executing source services.
2019-02-08 11:37:39 +01:00
Malte
83dff3cc02 improve os_path_samefile 2019-02-08 11:05:46 +01:00
lethliel
75731119b3 rebase with master 2019-02-08 10:44:06 +01:00
lethliel
62043bd385 move missing pb module logic to meter.py 2019-01-08 18:13:51 +01:00
Marco Strigl
4a28448e14 warn user if python-progressbar is not installed
For get_binaries:

move the generation of the progress_obj to commandline.py
and warn the user that python-progressbar is not installed
instead of crashing.
2019-01-08 13:52:00 +01:00
lethliel
d39aa59918 get_group_meta and get_user_meta with original behavior. 2018-12-13 14:26:11 +01:00
c49f8e4ad8 report status as outdated if the scheduler can not re-evaluated the
repository because it needs to wait for other repos first
2018-12-12 15:05:00 +01:00
Marco Strigl
0b2cbf6b26 switched version to 1.000 2018-11-15 09:35:20 +01:00
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