1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00
Commit Graph

1060 Commits

Author SHA1 Message Date
Marcus Huewe
cb9a5d5a17 - show_project_sourceinfo: quote package names 2014-06-24 23:05:38 +02:00
Marcus Huewe
0389a0343c - renamed {show,get}_sourceinfo to {show,get}_project_sourceinfo 2014-06-23 10:58:20 +02:00
Marcus Huewe
d45b3e49c0 - get_sourceinfo: workaround for too long request uri (status code 414) 2014-06-23 09:51:49 +02:00
Marcus Huewe
2f8db7fea0 - speedup update of a project working copy
The new code tries to reduce the number of http requests for unchanged
packages (that is, packages that do not need an update).
In the worst case (the project wc's packages are unchanged and contain
services, for example), the new code needs #http requests of the old code + 1
http requests. But we can improve, once the "noservice" patch
(see http://lists.opensuse.org/opensuse-buildservice/2014-06/msg00067.html)
is merged.
Note: the semantics of the update process itself did not change.
2014-06-22 15:41:14 +02:00
Marcus Huewe
a754164067 - use HTTPError.hdrs instead of HTTPError.headers
There are situations where a HTTPError instance has no headers
attribute.
2014-06-08 21:33:06 +02:00
Ruediger Meier
7fc5936faf core: fix, buildlog --strip-time failed to remove time
If a time field is not complete within the same read block
then it can't be found by time_regex in buildlog_strip_time().

Fixed by simply reading line by line. I couldn't measure any
performance difference neither for real nor user time. IMO no
need to optimize for more lines per data chunk. Maybe it's
even more fluent now for interactive users.

BTW we can safely simplify time_regex.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-23 09:19:07 +00:00
Ruediger Meier
1d7b954022 core: streamfile() can read line by line
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-23 09:17:01 +00:00
Ruediger Meier
6bb8ca437b core: style, de-duplicate read() calls
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-23 09:10:48 +00:00
c7222540e3 - restore default behaviour of setlinkrev command
The purpose of the default is to freeze the link
to the current version in the link target. It did
entirely drop the rev attribute which basically
unfreeze the link (same as -u).
2014-05-16 10:30:15 +02:00
f20b26007e - fix another place of group handling for set_bugowner 2014-05-09 10:31:17 +02:00
Marcus Huewe
c398cb344a - fixed testsuite (and indention)
Broken by commit 0e3641610e
2014-04-16 15:56:59 +02:00
0e3641610e support maintenance release request with acceptinfo data (OBS 2.6) 2014-04-16 15:47:58 +02:00
Marcus Huewe
0b7e49b648 - open 0.146 development 2014-04-03 09:32:21 +02:00
Marcus Huewe
2170abb612 - prepare 0.145.0 release 2014-04-03 09:31:51 +02:00
Andreas Schwab
9ab3c5becc print_buildlog: don't strip tabs 2014-03-15 22:27:33 +01:00
Marcus Huewe
720c685868 - core.Package.commit: make sure a _meta is created for newly added packages
Fixed typo (introduced in commit 6469efb9ed).
2014-03-06 10:25:30 +01:00
Marcus Huewe
6469efb9ed - core.get_local_origin_project: added check for None 2014-03-06 09:56:13 +01:00
714de8519c - support release --set-release option 2014-03-05 16:03:23 +01:00
Marcus Huewe
8b058b3a47 - do_setlinkrev, set_link_rev: fixed #72
Also refactored set_link_rev code a bit so that the new _set_link_rev
function could be used by link_pac in the future.
2014-03-03 22:44:30 +01:00
1dc8109ef8 Fix missing unquote in meta pkg check
Fixes issue #77
2014-02-28 00:42:47 +01:00
Ludwig Nussel
f065dc4765 show source revision in submit requests 2014-02-27 16:46:49 +01:00
014551e786 Move the user interaction for linked package into commandline.py 2014-02-27 16:45:44 +01:00
fdd58e23c8 - roll 0.144.0 release 2014-02-27 10:42:03 +01:00
Marcus Huewe
d92098a864 - Package.commit: fixed spelling error and added FIXME comment 2014-02-25 14:09:04 +01:00
Marcus Huewe
d8e0b82b10 - fixed core.edit_meta
The change introduced in commit a20c6f5d99
broke the creation of new packages.
2014-02-25 14:06:20 +01:00
a20c6f5d99 Allow commits to linked pakages.
If the package is linked to a different project, osc will ask
permision to branch the package in the current project before
commiting.

Show a message in osc meta pkg -e in the same case.
2014-02-24 16:02:47 +01:00
Marcus Huewe
b5d47ebd8c - do_maintainer: fixed support for groups
Ideally, the whole method will be refactored one day...
2014-02-11 11:56:44 +01:00
0557fecd02 - support bugowner set of groups 2014-01-24 17:01:35 +01:00
cb14b06a74 open 0.144 development 2014-01-24 10:51:00 +01:00
af2dffb002 prepare 0.143 2014-01-24 10:48:46 +01:00
7fcb1bbe3e - fix set bugowner command 2014-01-24 10:29:00 +01:00
9e07851310 - fix "osc up -S" including service files, regression in 0.142 from commit 930974b4ab 2014-01-21 18:09:20 +01:00
Marcus Huewe
9a8679a21e - core: added wrapper for os.utime (workaround for bnc#857610)
It seems that os.utime raises EINVAL if the file resides on a nfs
share. Since osc itself does not rely on the correct utime, we simply
ignore this exception.
2014-01-09 14:15:30 +01:00
Marcus Huewe
a4632969e4 - core.Package.commit: only update store if the commit was successful
This fixes bug #65
2014-01-09 13:56:34 +01:00
Marcus Huewe
5e5427f9be - ServiceInfo.execute: also cleanup dirs
Fixes #67.
2014-01-09 10:24:48 +01:00
Michal Vyskocil
5d5185cbc6 chmod handling
* prefer os.open instead of open && os.chmod
 * prefer os.fchmod when fd exists
2014-01-06 11:12:02 +01:00
Marcus Huewe
550039f746 - core.request_interactive_review: be able to edit a "maintenance_incident"
Fixes #64.
2013-12-16 10:59:07 +01:00
Marcus Huewe
daf5da2f18 Merge branch 'master' of https://github.com/bartosh/osc 2013-12-06 10:57:25 +01:00
Marcus Huewe
d04c36189e - core.http_request: remove timeout cruft 2013-12-05 18:30:40 +01:00
Ed Bartosh
2d29c35f46 Fixed traceback in get_prj_results
The reason of the crash is that not all targets are always defined for
all packages. In our environment it happens when linked project is
created and sources have just been uploaded to one package.

Here is the crash:
Traceback (most recent call last):
  File "../tools-testing/build-package", line 313, in <module>
    sys.exit(main(sys.argv))
  File "../tools-testing/build-package", line 309, in main
    return build(apiurl, tproject, package, timeout)
  File "../tools-testing/build-package", line 226, in build
    hide_legend=True, csv=True)
  File "/usr/lib/python2.7/site-packages/osc/core.py", line 5135, in get_prj_results
    row = [pac] + [status[pac][tg] for tg in targets]
status[pac]]
KeyError: ('Fedora_18', 'i586', 'outdated')

Please note that this fix fixes only csv mode. For other modes osc still
can crash, but it's hard to reproduce here as we're not using them.

Signed-off-by: Ed Bartosh <bartosh@gmail.com>
2013-12-05 16:46:30 +02:00
f202fbd111 add option for deleterequests using auto-accept 2013-12-05 10:23:53 +01:00
Andreas Schwab
b2e94ff3af Fix wipebinaries 2013-12-01 19:01:58 +01:00
602841f14b - fix upload of binary files via POST api call (use right content type) 2013-11-27 11:13:08 +01:00
99b3af9a41 - open 0.143 development 2013-11-21 10:32:17 +01:00
de3e141256 - roll 0.142 release 2013-11-21 10:27:49 +01:00
B S Srinidhi
bd3a6d2fc8 Include filelimit=0 when querying full serverside diff
Without this change, "osc rdiff -p" simply returns "(XXX lines skipped)"
2013-11-11 01:39:32 +05:30
63e1124c09 - add support to handle authentification token support 2013-10-31 09:12:17 +01:00
67802e6a41 - support restartbuild and abortbuild
small refactoring but keep api compability
2013-10-28 18:30:32 +01:00
ad9a32ca8f - handle also gateway timeout error code when watching build results 2013-10-22 17:58:53 +02:00
Marcus Huewe
e89bc8197b - fixed #52 ("osc dumps on ci") 2013-10-22 13:49:14 +02:00