1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-30 01:18:59 +01:00
Commit Graph

3229 Commits

Author SHA1 Message Date
82a222fcb2 Test osc results and prjresults 2018-11-06 17:07:20 +01:00
lethliel
839fedb465 fix broken URLError handling in OscMirrorGroup.urlgrab()
If urlgrab returns a URLError (for example if the Network is unreachable)
the for loop did not continue and the osc build aborts.

Now we also catch the URLError and try the next mirror and return False
correctly if no mirror could be reached. And then try to download it from
api
2018-11-06 17:01:55 +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
1f2964a3d1 deleted python3 sepcific wrapper script. 2018-11-06 09:16:32 +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
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
9b7bcd6de0 improve error message if file is not a valid rpm
The current error message is quite confusing and nobody knows what
"invalid lead magic" means.
2018-10-18 15:23:31 +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
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
bbf34432f0 fix local multibuild flavor support when package does not exist ('_repository' case) 2018-10-17 10:15:30 +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
Marcus Huewe
27dbe35503 Refactor the do_vc code a bit
No functional changes.
2018-10-17 10:14:18 +02:00
Marcus Huewe
5efe917d56 Consider the "realname" config option in apiurl sections
This is a follow up fix for commit ef13d67 ("Export a real name
for vc to consume").
2018-10-17 10:13:51 +02:00
2f473e1878 add podman build support 2018-10-17 10:13:08 +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
lethliel
bc9ad6fe15 cleanup xpath. submit/* is ignored by the API since 2012 2018-10-17 10:12:10 +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
Sean Kelly
4557231cdc Support larger uids and gids 2018-10-17 10:09:03 +02:00
jonsger
d952b8965e Fix typo in "osc revert" help 2018-10-17 10:06:51 +02:00
27532723eb always run build using --statistics. I could have made this
yet another option, but
* only very old build scripts don't know it, we should just require a recent one
* build script is ignoring it for chroot case

so why bother with another option?
2018-10-17 10:06:07 +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
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
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
a9fc04d996 fix set maintainer (fixes issue #452) 2018-10-17 09:43:17 +02:00
lethliel
aba25d94cb Merge branch 'python3' of github.com:openSUSE/osc into python3 2018-10-17 09:39:39 +02:00
Matthias Bach
72d0e04cb0 Fix Bash completion if PWD contains whitespace
The script used ${PWD} without proper quoting causing Bash completion
to not work properly if there was whitespace in the path of the current
working directory.
2018-10-16 21:06:29 +02:00
Tomáš Čech
13df397b07 remove osc_hotshot.py
osc_hotshot.py is long time untouched and broken thus I assume it is
safe to be removed

fixes issue #400
2018-10-16 20:57:28 +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
Matthias Bach
d8a6b27cdd Fix Bash completion if PWD contains whitespace
The script used ${PWD} without proper quoting causing Bash completion
to not work properly if there was whitespace in the path of the current
working directory.
2018-10-16 17:48:46 +02:00
Marco Strigl
0c93ce26a3 Merge pull request #442 from z3ntu/py3.7
Fix Python 3.7 support
2018-10-10 20:54:27 +02:00
Luca Weiss
fa58c8a260 Fix Python 3.7 support
See PEP 479
2018-10-09 17:02:23 +02:00
lethliel
70279c60d8 fix creation of cpio archives
Problem was that the length of the cpio archive was calculated wrong,
because the content was not binary
2018-09-26 14:45:29 +02:00
lethliel
16bcfd65a9 fix crash on empty input list / meta files 2018-08-28 15:31:06 +02:00