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

1457 Commits

Author SHA1 Message Date
Marcus Huewe
2ad1495eec Cleanup the source services execution code in do_build
Always error out if the source services execution failed (the old
code only errored out if the local_service_run config option was
set (this behavior was probably unintentionally introduced in commit
d3dd8539d9 ('- fallback to "build
--local-package" if it does not exist instead of complaining'))).
Also, do not suppress all exceptions (if something failed in the
services execution code path, the user should be informed).

The bug was reported by darix.
2019-03-08 09:15:41 +01: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
f8c70a1525 fix broken prefer_pkgs logic
osc build -p <dir> and osc buildinfo -p <dir> is now working
again. Root cause was the switch from cpio.py and RPMQuery to
a bytes only interface
2019-02-20 11:14:46 +01:00
f51354e3ce Return exitcode when "osc results" is falling through prjresults
Otherwise a failure from osc prjresults does not propagate
up.
2019-02-08 11:41:37 +01:00
lethliel
65c98c7dab reworked deleterequest commit (add --all)
* removed superfluous parenthesis
* switched package == None to package is None
2019-02-08 11:41:06 +01:00
b8f9a9cde4 deleterequest for entire projects needs the --all option as additional protection
We had it two times this week that people dropped entire projects
(important ones)
2019-02-08 11:40:27 +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
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
0190177c81 Don't crash if can_also_build does not contain hostarch 2019-01-07 14:32:46 +01:00
lethliel
d39aa59918 get_group_meta and get_user_meta with original behavior. 2018-12-13 14:26:11 +01:00
lethliel
6db194aee0 fix osc results --xml 2018-11-06 17:24:03 +01:00
lethliel
0f0c12cb55 enable python3 support for osc prjresult --xml 2018-11-06 17:16:47 +01:00
429df0dc70 Add --watch for osc prjresults --xml
Like: osc results --watch
2018-11-06 17:07:36 +01:00
060f3464d9 Add --no-delay for osc release
This is useful so one can wait with a following osc prjresult until
everything done. Without this one can not know if a release job hasn't
started yet or is already finished.
2018-11-06 09:23:12 +01:00
bfd832b5b0 Fix help for osc token 2018-11-06 09:22:44 +01:00
Marco Strigl
8422ff7157 add --alternative-project option to buildinfo
to be consistent with osc build
2018-11-06 09:22:19 +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
6d9be9862c reworked replacement of urlgrabber
to be in sync with osc/master
2018-11-02 10:21:08 +01: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
65ca4b1054 support checkconstraints command without local checkout 2018-10-17 10:16:42 +02:00
Johannes Kastl
e5e9860b7b change keep-link description to make it easier to understand 2018-10-17 10:15:54 +02:00
Marcus Huewe
27dbe35503 Refactor the do_vc code a bit
No functional changes.
2018-10-17 10:14:18 +02:00
d0a6842664 Clarify use of osc token
Clarify the fact that the parameters of osc token -t and osc token -d are
of different types.
2018-10-17 10:12:33 +02:00
2a9ce7d504 Export a real name for vc to consume 2018-10-17 10:11:16 +02:00
1af3467917 fix DISTURL checkout for package containers using a multibuild flavor 2018-10-17 10:09:32 +02:00
jonsger
d952b8965e Fix typo in "osc revert" help 2018-10-17 10:06:51 +02:00
e0589e83a3 fix some commands when used with / syntax between arguments 2018-10-17 10:05:39 +02:00
a64c188e16 - support "addcontainers" command 2018-10-17 10:05:09 +02:00
lethliel
11e51b417d fix order of options valdiation. Now -P and -p is
honored if given by user.
2018-10-17 09:55:54 +02:00
deac6b00f7 add new options to diff command:
--unexpand for local diffs only (bsc#1089025)
--meta for diffing meta files
2018-10-17 09:55:39 +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
e7f979d4ea change output when creating binaries directory
was:
Creating binaries

is now:
Creating directory "binaries"
2018-10-16 20:53:41 +02:00
lethliel
d8751be732 decode diff in osc rq show -d before printing it 2018-06-05 14:48:41 +02:00
lethliel
a6627de8d3 fixed osc less <path> 2018-04-26 15:49:09 +02:00
lethliel
89a181264c fixed osc branch with different srcprj or srcpkg 2018-04-23 12:40:57 +02:00
lethliel
3760a07b50 fixed osc ls with _link file 2018-03-26 15:06:02 +02: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
d07d6b9b22 fix osc sr using message from changes file 2018-03-13 15:42:00 +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
d846a6cf1f support python 2.6 2018-03-08 15:19:11 +01:00
lethliel
863cf0e62b fixed osc vc if no changes file is present 2018-03-08 12:02:20 +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
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
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