Marcus Huewe
3683d9550d
- added "local_service_run" config option
...
can be used to permanently disable the local service run on commit
(default: enabled)
2011-09-07 15:19:54 +02:00
568612cedc
- drop hardcoded source validator executions
2011-09-07 13:55:05 +02:00
Sascha Peilicke
097daf311b
Fix tests/test_repairwc.py, there's no 'urllib22' yet ;-)
2011-08-18 16:02:34 +02:00
Sascha Peilicke
7acf236662
Honor PEP-8 in osc/conf.py. Includes moving all imports to the top (and
...
importing only once).
2011-08-18 16:02:34 +02:00
Marcus Huewe
af253d2eb2
- respect no_proxy env variable
2011-07-15 20:10:45 +02:00
Michael Schroeder
19a9765065
- fix auth failure when converting from passx to pass
2011-05-23 17:14:48 +02:00
6c654b012f
- just for readability
2011-05-23 16:34:04 +02:00
Marcus Huewe
7c59949f33
- add new config option include_request_from_project (default True)
...
This way it's possible to hide requests which have a given project
as a source project when running "osc rq list project".
Original patch by darix (just a bit beautified)
2011-05-12 23:27:19 +02:00
acbbbacabd
- add "createincident" command
2011-05-02 13:22:56 +02:00
Marcus Huewe
b8c3a23b90
- conf.py: workaround for urllib2: reset basic auth retry count if a 404 is encountered
...
normally we should also do this for all status codes != 401 but so far
it seems to be sufficient to do it only for 404
2011-04-06 17:26:51 +02:00
Marcus Huewe
35bf60bbf0
- support %(apihost)s in the "build-root" config option
...
apihost is the hostname extracted from currently used apiurl
2011-03-15 18:45:36 +01:00
Juergen Weigert
b46d287570
added hint, what to do with a 'user is blank' error.
2011-03-10 20:14:09 +01:00
Marcus Huewe
02f788f12e
- (temporary) fix for 53ca3b9a14
...
(python 2.4 doesn't support the syntax)
2011-02-18 00:34:49 +01:00
Anas Nashif
53ca3b9a14
default to 1 processors on darwin, since we are not going to build anything here anyways.
2011-02-17 22:50:13 +00:00
Marcus Huewe
1dcf5fb3d6
- use pass instead of passx (plaintext_passwd is the default)
2011-02-11 12:42:54 +01:00
Ludwig Nussel
0527789db9
either use plain text password or obfuscated ones
...
Don't you ever call this encrypted. It's just about obfuscation and
has no real security benefit.
2011-02-03 14:25:20 +01:00
Michal Čihař
f8184165ed
Drop plain text password from generated config file.
...
The passx is around for some time and it is not needed to put plaintext
into config file forever.
2011-01-07 09:48:34 +01:00
Michal Čihař
3892117558
Print warnings to stderr.
...
This way we can avoid confusion for programs which do parse osc output.
2011-01-05 16:32:41 +01:00
Marcus Huewe
5bf59d2c60
- change_request_state_template: support tgt_project and tgt_package in template (for backward compatibility the dst_ prefix is still supported)
2010-12-30 20:58:00 +01:00
Juergen Weigert
01fc46cbd3
New config option 'checkout_rooted'. Default off to retain current
...
behaviour. Enabled, it prevents checking out projects inside of other
projects or packages. That better matches my mental model of a tree.
2010-12-27 23:03:17 +01:00
Ludwig Nussel
72842a43c3
use sudo as default su wrapper
2010-12-21 14:12:14 +01:00
Marcus Huewe
b1db52c7b6
- minor cosmetic changes
2010-12-18 03:39:19 +01:00
Brandon Philips
51d2436023
conf: detect and handle blank usernames
...
Fix situation where osc has added a blank username to the keyring and
update the config parse script to do the right thing and not allow blank
usernames.
I was in a very confusing situation where my keyring ended up with two
entries:
- @api.suse.de
- philipsb@api.suse.de
And I was getting 401s because of it.
Signed-off-by: Brandon Philips <bphilips@suse.de>
2010-12-18 03:27:26 +01:00
Michal Čihař
a285c83794
Implement retries on http
...
There is a bug either in buildservice or in iChain which sometimes
truncates data and sends empty Content-Length header (see bnc#656281).
This patch makes osc retry request to workaround this problem.
The number of retries are configurable in config file as http_retries.
2010-12-06 16:05:10 +01:00
Marcus Huewe
4a8a495849
- OscConfigParser: don't interpolate continuation lines
2010-11-14 18:53:14 +01:00
Marcus Huewe
ca794fe87f
- added template support for a submitrequest accept/decline message
2010-11-14 18:32:02 +01:00
Marcus Huewe
7ade282e6e
- rewrite pass to passx if pass and passx mismatch
...
- do_config: automatically reread (which may lead to a rewrite) config
if an option was changed
2010-11-14 13:10:17 +01:00
Marcus Huewe
d1b07615ce
- only exclude vc tmpfiles (*.changes.in isn't excluded anymore) (as requested by coolo/others)
2010-09-16 11:45:59 +02:00
Marcus Huewe
aa2832f525
- workaround for broken urllib2 in python 2.6.5: wrong credentials lead to an infinite recursion
2010-09-14 23:10:23 +02:00
Marcus Huewe
7145ecf0c9
- added is_known_apiurl method to check if a given url is a known apiurl
2010-09-01 15:53:37 +02:00
Marcus Huewe
109e199445
- filter Cookie, Authentication and Set-Cookie headers when using "osc -H..."
...
to enable full debug use "osc --http-full-debug". The current implementation
is _really_ ugly but httplib doesn't use a logger object or such...
2010-09-01 15:38:08 +02:00
Marcus Huewe
2f544dad9f
- disable sslcertck for http
2010-09-01 12:04:46 +02:00
Marcus Huewe
788342ea1b
- oops (forgot 'not')
2010-08-26 17:38:47 +02:00
Marcus Huewe
2cb03b4efe
- fixed "logic" issue in init_basicauth
...
the old code didn't turn off the ssl checking if conf['apiurl']
was configured with "sslcertk = 1".
Example:
~/.oscrc:
[https://foo ]
sslcertk = 0
...
[https://main ]
sslcertk = 1
...
[general]
apiurl = https://main
if you send a request to https://foo (and conf['apiurl'] == https://main )
it'll fail because the ssl checking isn't disabled.
2010-08-26 13:06:00 +02:00
Marcus Huewe
4eacd5dfa7
- workaround for broken urllib2 (see http://bugs.python.org/issue9639 )
2010-08-19 13:00:10 +02:00
Marcus Huewe
03ad610caf
- move 'builtin_signature_check' into conf module
2010-08-16 16:06:17 +02:00
Marcus Huewe
cbebe3b239
- treat "no_verify" as a boolean
2010-08-12 23:13:51 +02:00
Juergen Weigert
5fe669b15b
allow no_verify also in .oscrc
2010-08-12 21:34:08 +02:00
cff8696818
do not hide open request by default.
2010-07-29 13:39:48 +02:00
1975ddb8eb
Revert "no need to warn about empty validator dir"
...
after discussion, we will provide an update with osc-source_validator instead
This reverts commit 828bb264ca
.
2010-07-16 15:57:28 +02:00
Ludwig Nussel
828bb264ca
no need to warn about empty validator dir
...
also remove from config template. the default should be ok.
2010-07-07 16:41:09 +02:00
Ludwig Nussel
c303735ab1
implement trusted projects
2010-06-23 14:47:52 +02:00
Ludwig Nussel
0663410f9c
normalize apiurl
2010-06-23 14:47:52 +02:00
Marcus Huewe
8380602de6
- ignore tmp files from "vc" (*.changes.*)
2010-06-14 15:39:05 +02:00
Pavol Rusnak
e8d60c36a2
Revert "package cache should be in /var/cache not in /var/tmp"
...
This reverts commit 8d34581960
.
/var/cache is not writable for everyone :-/
2010-06-09 18:00:16 +02:00
Pavol Rusnak
8d34581960
package cache should be in /var/cache not in /var/tmp
2010-06-09 17:58:29 +02:00
7e0abcd805
Make source validator moduler, execute all scripts in directory
2010-05-20 12:02:53 +02:00
e9b5ca869a
support source validators as pre-checkin check
2010-05-20 06:40:18 +02:00
Ludwig Nussel
38cd884c52
remove build-vmdisk-autosetup and build-vmdisk-force
2010-03-30 14:22:06 +02:00
Marcus Huewe
ea3e5d20bf
- small fixes
2010-03-28 22:23:40 +02:00