Michal Čihař
ae13273045
Fix listing of projects and packages with unicode name
...
This fails with UnicodeEncodeError on non unicode terminal, what makes
it impossible to list project on current OBS.
2011-01-05 10:11:55 +01:00
Michal Marek
562c92d0d7
build: Fix for su-wrapper = su -c
...
su-wrapper = su -c has been broken since commit 5376580
. Handle this
case so that people do not have to update their configs.
Signed-off-by: Michal Marek <mmarek@suse.cz>
2011-01-02 23:43:51 +01:00
Marcus Huewe
50ae7c7c24
- fix for my last commit...
2010-12-30 21:02:42 +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
Marcus Huewe
875fd86a31
- reqid is a str (now)
2010-12-30 13:28:11 +01:00
Marcus Huewe
40d1c58e1d
- added TODO to commandline.py (rewrite and consolidate the current submitrequest/createrequest "mess")
2010-12-30 03:14:24 +01:00
Marcus Huewe
dc869920b3
- print a newline after a list_view() call
2010-12-30 03:10:27 +01:00
Marcus Huewe
6cd837fcb3
- fixed attribute names for Request() instances (changed "dst_" prefix to "tgt_")
2010-12-30 03:04:10 +01:00
Marcus Huewe
b2838dd88d
- rewrote Request class and friends
...
- rewrote Action class: instances only provide attributes for their specific type (for details see class doc).
Renamed "dst_project" attribute to "tgt_project" and "dst_package" attribute to "tgt_package" (only affects
types which have a <target /> element)
- added AbstractState class: Base class which represents state-like objects (<review />, <state />)
- rewrote ReviewState and RequestState classes
- rewrote Request class: apart from internal rewrites the format of the "__str__" and "list_view" methods
slightly changed
Now it should be much easier to create new requests without constructing the
request xml by hand.
Example:
r = Request()
r.add_action('submit', src_project='foo', src_package='bar', tgt_project='targetprj', tgt_package='targetpkg')
r.add_action('set_bugowner', tgt_project='foobar', person_name='buguser')
r.add_action('delete', tgt_project='prj', tgt_package='deleteme')
print r.to_str()
->
<request>
<action type="submit">
<source package="bar" project="foo" />
<target package="targetpkg" project="targetprj" />
</action>
<action type="set_bugowner">
<target project="foobar" />
<person name="buguser" />
</action>
<action type="delete">
<target package="deleteme" project="prj" />
</action>
</request>
2010-12-30 02:30:37 +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
Juergen Weigert
ce3ee5e614
Added -V, --version to do_search.
...
This shows all the hard to retrieve, but 'essential' details about a
package: version, revision, srcmd5
If there is a better way some day, than digging through _history,
please improve core.py:get_source_rev()
It is a new option, only because it is so slow; the version
number should rather be in default output.
2010-12-26 21:14:40 +01:00
Marcus Huewe
f30297d2d3
- moved get_commit_msg into core.py + fixed _commit_msg handling
2010-12-26 13:33:14 +01:00
Marcus Huewe
3ed4d30c55
- do_status: call print unless "lines" is empty
2010-12-25 20:57:26 +01:00
Juergen Weigert
f39460c8d8
Added 'osc linkdiff'
...
This shows all changes since branching, be they committed or not.
Implementation folded into do_diff() for reuse of code, although
this can behave quite differently.
2010-12-24 22:44:19 +01:00
Marcus Huewe
9a07995cc3
- fixed WorkingCopyInconsistent __init__ call
2010-12-23 02:17:19 +01:00
Marcus Huewe
d77f8919fe
- Project.init_project: return Project object
...
- adjusted testcases
2010-12-23 02:15:58 +01:00
Marcus Huewe
c330700f36
- refactored getStatus into the Project/Package class
...
- removed getStatus
- added the following new methods to the Project class:
* get_status: get the status of all packages in the project
* status: get the status of a single package
* get_pacobj: return a new Package object
- added the following new method to the Package class:
* get_status: get the status of all files in the package
- do_commit: fixed getStatus() call
- do_status: rewrite (uses new methods)
2010-12-22 23:17:11 +01:00
Marcus Huewe
f4d3648c8e
- fix for 904754987c
2010-12-22 17:30:30 +01:00
Petr Uzel
197c10f661
Return argument to do_man back
...
Revert a part of b3c5204
, the do_main has to have at least one
argument, unless following exception will appear
osc.cmdln.CmdlnError: incorrect argcount for do_man(): takes 1, must
take 2 for 'argv' signature or 3+ for 'opts' signature
Signed-off-by: Petr Uzel <puzel@suse.cz>
Signed-off-by: Michal Vyskocil <mvyskocil@suse.cz>
2010-12-22 13:29:52 +01:00
Ludwig Nussel
70b3c3c435
fix osc my rq
...
also display requests for packages where the user is maintainer of
the package but not the project (e.g. devel:openSUSE:Factory)
2010-12-22 08:46:54 +01:00
Ludwig Nussel
6cee3c99fa
fix --define
2010-12-22 08:29:08 +01:00
Marcus Huewe
904754987c
- "override" raw_input from __builtin__'s and interpret EOFError (ctrl-d) as user abort (raise oscerr.UserAbort)
2010-12-22 00:03:27 +01:00
Ludwig Nussel
046a2be24e
never pass an empty superseded_by as that violates the schema
2010-12-21 14:20:43 +01:00
Ludwig Nussel
fb77b7b9f8
fix correct order in aggregate template
2010-12-21 14:12:14 +01:00
Ludwig Nussel
a854423e86
copypac: don't copy service generated files
2010-12-21 14:12:14 +01:00
Ludwig Nussel
78efea07eb
retry rdiff on unexpanded sources if link expansion fails
2010-12-21 14:12:14 +01:00
Ludwig Nussel
5376580652
use list instead of string for command
...
now arguments with spaces should also work
2010-12-21 14:12:14 +01:00
Ludwig Nussel
820595bb20
osc build --shell
2010-12-21 14:12:14 +01:00
Ludwig Nussel
72842a43c3
use sudo as default su wrapper
2010-12-21 14:12:14 +01:00
Marcus Huewe
570d4f7f70
- do_config: added --dump and --dump-full options to dump the complete configuration
2010-12-18 17:16:43 +01:00
Marcus Huewe
ec971074b0
- OscConfigParser.__str__: added special handling for continuation lines
2010-12-18 15:12:07 +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
Marcus Huewe
0f73fb86a4
- fixed #658664 ("osc: a package internal error occured")
...
- a file was marked as 'A' but didn't exist in the wc
2010-12-17 23:25:50 +01:00
Marcus Huewe
306507748c
- fixed proxy handling (broken by 53361a50f1
)
...
- this fixes #657958 ("openSUSE:Tools/osc: Bug")
- oscssl.myProxyHTTPSConnection: proxy auth works again
2010-12-17 18:14:11 +01:00
Marcus Huewe
0e7074f89c
- change_review_state: by_group param should be optional
2010-12-15 14:31:18 +01:00
Marcus Huewe
a30f718d96
- fix for python2.4
2010-12-15 12:23:43 +01:00
Juergen Weigert
45e6e5cf08
Added dropreq droprequest as aliases to deleterequest,
...
mention 'drop' in usage. We often say 'drop a package'.
2010-12-14 15:49:27 +01:00
Marcus Huewe
de25822a33
- wc_repair: check if passed apiurl is valid
...
- do_repairwc: get apiurls from conf.config.api_host_options dict
2010-12-09 20:36:06 +01:00
Sascha Peilicke
67cd6582b5
Wrong parameter fix patch by Markus Rückert.
2010-12-09 17:36:31 +01:00
9d167a7eab
offer also to supersed requests in review state (Bug #658479 )
2010-12-09 08:28:11 +01:00
5af3ac58de
offer also to supersed requests in review state (Bug #658479 )
2010-12-09 08:28:11 +01:00
Michal Čihař
fa19a2436e
One more case for dash escaping in man page.
2010-12-09 10:32:31 +01:00
Marcus Huewe
68bb33f141
- potential fix for #657838("osc 0.130: osc repairwc fails totally - working copy useless")
...
- do_repairwc: added '--force-apiurl' option:
ask once for an apiurl and force this apiurl for all inconsistent projects/packages
2010-12-07 20:35:12 +01:00
Marcus Huewe
15178b6e4f
- use 'print' instead of 'return' (otherwise the message will be written to stderr)
2010-12-06 21:44:38 +01:00
Marcus Huewe
30363a5db9
- open 0.131 development
2010-12-06 19:14:02 +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
ebe2f6390c
- bump version to 0.130
2010-12-06 15:36:13 +01:00
Marcus Huewe
619ebdae8d
- util/debquery.py: workaround for python2.4's tarfile module
2010-12-04 12:11:34 +01:00
Juergen Weigert
42f8c595f9
fixed URL in aggregatepac help text.
2010-12-03 12:39:18 +01:00
Juergen Weigert
200807fb37
suggesting 'osc ls /' for listing all projects.
2010-12-02 23:52:38 +01:00
Juergen Weigert
2fd0f1cb95
allow 'osc results PROJECT', as an alternative to 'osc prjresults PROJECT'.
...
Flagged 'ls' without arguments as deprecated. This should really list
relative to the working directory rather than all projects.
It's now consistent with running 'osc r' in PRJ/PKG working directory.
2010-12-02 23:36:40 +01:00
Michal Čihař
fbfb098a7d
Move urlparse import where it belongs.
2010-12-01 10:17:12 +01:00
Marcus Huewe
54a0d80abe
- don't fail if no "Content-Length" header exists
2010-11-30 19:10:06 +01:00
d3188831b9
validate received file length based on given Content-Length. for Bug #656281
2010-11-30 16:39:14 +01:00
Marcus Huewe
94836bcbf7
- do_submitrequest: --cleanup and --no-cleanup are mutually exclusive
2010-11-26 14:53:30 +01:00
Marcus Huewe
f77ab86010
- beautify
2010-11-26 14:51:07 +01:00
Juergen Weigert
955522f8e1
let 'osc submitpac' default to do cleanup.
...
In my understanding a submit is often considered a move and not a copy.
2010-11-26 12:39:09 +01:00
Marcus Huewe
044ffdd62e
- minor cosmetic change for the last commit
2010-11-25 22:45:51 +01:00
Dirk Müller
596570cebb
optimize _link files
...
On Thursday 04 November 2010, Sascha Peilicke wrote:
> Could you please send a patch file?
attached.
Greetings,
Dirk
From ac737b9ff8205fe3c320ee0b41b093c7ad92c348 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dmueller@suse.de>
Date: Thu, 4 Nov 2010 11:01:08 +0100
Subject: [PATCH] linkpac: Only include src_project if it differs
osc copypac copies _link files verbatim, so if they refer
to the same project, copying them should make them also
refer to the new project. This can be done by leaving
out the project part if it is the same like the destination
project
2010-11-25 22:43:42 +01:00
Marcus Huewe
668a38e978
Revert "rename requestmaintainership to requestrole (much nicer and makes more sense)"
...
This reverts commit cc9d3e07eb
.
(see discussion on the ml)
2010-11-25 22:23:12 +01:00
Pavol Rusnak
cc9d3e07eb
rename requestmaintainership to requestrole (much nicer and makes more sense)
2010-11-24 18:20:49 +01:00
Marcus Huewe
6d89fee500
- do_requestmaintainership: added --role option to allow different roles ('bugowner' or 'maintainer') (slightly modified version of Anas Nashif's <nashif@linux.intel.com> patch)
2010-11-24 16:41:02 +01:00
115de1e5c1
fix "osc update -s" help text
2010-11-24 15:35:16 +01:00
Ludwig Nussel
3631df59d4
make rdelete more fool proof
...
The previous convention of allowing multiple packages has caused
accidental deletion of packages while deleting files was intended (which
doesn't work that way). e.g. osc rdelete foo/bar/baz.spec would delete
foo/bar and then fail trying to delete foo/baz.spec
Also calling osc rdelete with accidental slash, e.g. osc rdelete
/foo/bar actually deleted project foo including all it's packages
without asking questions.
Both traps are eliminated now.
2010-11-24 14:24:59 +01:00
0bb0fb80f1
fix reopen or a review of a request
2010-11-24 14:18:45 +01:00
Brandon Philips
0a65b9870e
commandline: improve ENOTDIR error message for validators
...
WARNING: source_validator_directory configured but it does not exist:
/usr/lib/osc/source_validators
Install osc-source_validator to fix.
Signed-off-by: Brandon Philips <bphilips@suse.de>
2010-11-19 08:24:20 +01:00
Marcus Huewe
53361a50f1
- oscssl.myHTTPSHandler.https_open: use selector instead of fullurl
...
- fixes an issue with lighttpd 1.5
2010-11-16 21:29:33 +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
Juergen Weigert
805d9f9bf7
osc se Foo::Bar shortcut for osc se --package perl-Foo-Bar
2010-11-12 23:55:11 +01:00
Sascha Peilicke
dc49a7ebb2
fix for bnc #432995
2010-11-10 12:18:17 +01:00
8321e41096
fix review state change for review by_group
2010-11-09 17:19:56 +01:00
90325e90f4
fix URL syntax when requesting request list via reviewers
2010-11-09 16:08:26 +01:00
Ludwig Nussel
1b4955dc2a
add --arch and --repo to rebuild for Richi
2010-11-08 16:21:04 +01:00
Michael Schroeder
1299063228
- adapt 'osc pull' to new addlist implementation
2010-10-29 17:41:39 +02:00
Michael Schroeder
6b618b29be
- do not crash if there is no diff
2010-10-29 17:30:56 +02:00
Marcus Huewe
65e5af303a
- request_interactive_review: support "c(l)one"
2010-10-26 15:47:07 +02:00
Marcus Huewe
785e4dcb1f
- added new "clone_request" method
2010-10-26 15:34:32 +02:00
Juergen Weigert
7862ce74de
redundant 'state is' removed from messages.
2010-10-23 14:49:28 +02:00
Marcus Huewe
8d0778aff3
- babysitter.py: catch util.packagequery.PackageError
2010-10-21 21:51:20 +02:00
Marcus Huewe
1f51445859
- add "fname" attribute to util.PackageError class
2010-10-21 21:46:41 +02:00
Marcus Huewe
a651156b71
- don't print set value if --no-echo is used
2010-10-16 12:32:21 +02:00
Marcus Huewe
6d9b057898
- do_config: added new options --stdin, --prompt, --no-echo
...
--stdin: read value from stdin
--prompt: prompt for a value
--no-echo: prompt for a value but don't echo entered characters (for instance to enter a passwd)
2010-10-16 12:24:21 +02:00
Ludwig Nussel
5cdc422774
update review/request docu and fix some status code parsing
2010-10-12 11:31:03 +02:00
Ludwig Nussel
42866b1e12
prompt for message on review add
2010-10-12 11:31:02 +02:00
Ludwig Nussel
9e0b8c3760
remove 'review new', it's broken and intention unclear
2010-10-12 11:31:02 +02:00
Ludwig Nussel
0d93af2291
default to current user when adding a review
2010-10-12 11:31:02 +02:00
Ludwig Nussel
1b8c4a3382
add alias for old option
2010-10-12 11:31:02 +02:00
Marcus Huewe
4229eb6197
- repairwc: repair a project wc (only missing '_apiurl' file so far)
2010-10-10 21:40:31 +02:00
Marcus Huewe
cc29db4551
- get rid of osc.core.init_project_dir
...
- moved cleaned up code to the Project class' "init_project" static method
2010-10-09 16:26:55 +02:00
Marcus Huewe
1b9825b8d8
- '_frozen' is no special storefile
2010-10-09 14:31:58 +02:00
Sascha Peilicke
0ec57a9e84
fixed do_rebuild: allow 'rebuild' in project paths
...
Previously, an 'osc rebuild' was only possible inside a package
directory contrary to the command help.
2010-10-08 12:25:32 +02:00
Marcus Huewe
c112331f25
do_buildinfo: accept the same arguments like do_build
...
- removed "with" statement again
2010-10-04 15:57:52 +02:00
Sascha Peilicke
7927a7ba04
Merge commit 'refs/merge-requests/6' of gitorious.org:opensuse/osc into integration
2010-10-04 15:06:32 +02:00
Sascha Peilicke
53813ff15a
Merge commit 'refs/merge-requests/7' of git://gitorious.org/opensuse/osc into integration
2010-10-04 15:04:04 +02:00
Marcus Huewe
b08802e9fe
- fixed do_my (was broken by commit 54513a23de
but nobody noticed it so far)
2010-09-29 19:57:00 +02:00
Marcus Huewe
64ac6aeb4f
- do_repairwc/wc_repair: repair missing "_apiurl" file
...
- store_read_apiurl: raise WorkingCopyInconsistent if dir is a wc, defaulturl is False
and ".osc/_apiurl" doesn't exist (otherwise NoWorkingCopy is raised)
- WorkingCopyInconsistent: add new attribute which contains the dirty files
2010-09-28 23:07:33 +02:00
Marcus Huewe
67c07e38c0
- minor indention fix
2010-09-28 16:20:55 +02:00
5feac3f242
do not download large debug packages by default with "getbinaries"
2010-09-27 17:43:44 +02:00
Juergen Weigert
e8859a6a74
oops, that was perl syntax ...
2010-09-21 19:59:15 +02:00
Juergen Weigert
eb295452ae
fixed 'osc rq list -a proj pack'; added 'osc my rq' to usage of osc rq
2010-09-21 19:44:34 +02:00
Jan-Simon Möller
68c7b57f66
[osc] add cb(pre)ignore capabilities to osc.
...
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2010-09-21 11:29:18 +02:00
Marcus Huewe
f7dc7abebc
- do_submitrequest: ignore skipped files
2010-09-21 11:20:05 +02:00
brook hong
02980dfdb0
git_pull service osc support
2010-09-20 17:09:43 +08:00
Marcus Huewe
530d67102f
- package/project wc's require the "_apiurl" storefile
...
- store_read_apiurl: added "defaulturl=True" parameter to return the
default apiurl if no '_apiurl' file exists (or if an exception is
raised while trying to read the '_apiurl' file)
2010-09-19 23:00:19 +02:00
Marcus Huewe
af7ff0f2ad
- request_interactive_review: added "(s)kip" option to skip the current request
2010-09-17 23:03:29 +02:00
Marcus Huewe
de8b33f29d
- support --interactive-review option when running "osc rq list <project>"
...
iterates over all requests for the given project and calls "request_interactive_review"
2010-09-17 21:03:52 +02:00
Marcus Huewe
cb7620fc54
- add '_frozenlink' to OPT_STOREFILES
2010-09-16 15:43:17 +02:00
Marcus Huewe
6b9621b5b9
- fix for python2.7/m2crypto: M2Crypto.httpslib.ProxyHTTPSConnection defines "endheaders" without parameters
...
Now "myProxyHTTPSConnection" inherits from "M2Crypto.httpslib.ProxyHTTPSConnection" _and_ "httplib.HTTPSConnection".
The latter class is only used to call "httplib.HTTPSConnection.endheaders". This multiple inheritance shouldn't have any side-effects
because "M2Crypto.httpslib.ProxyHTTPSConnection" already inherits from "httplib.HTTPSConnection" (and mro will pick the methods from
"M2Crypto.httpslib.ProxyHTTPSConnection" first).
2010-09-16 14:28:14 +02: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
6d9c5cf228
- "osc request show <id>": added --source-buildstatus option to print the buildstatus of the src package
...
- "osc request show <id> --interactive": added shortcut "b" to print the buildstatus of the src package
2010-09-14 16:02:21 +02:00
Marcus Huewe
986e71d575
- do_repairwc: adjusted help text
2010-09-14 14:51:18 +02:00
Marcus Huewe
69c3161e93
- do_repairwc: print more details how to fix a broken wc
2010-09-14 14:48:10 +02:00
Marcus Huewe
56d3b9b479
- "do_repairwc": find all broken pkgs and repair them if it's called in a project dir
2010-09-14 14:40:18 +02:00
Marcus Huewe
f9f785ccd8
- add path to the broken wc to the error message
2010-09-14 13:12:32 +02:00
Vincent Untz
e78e4f3151
make "osc rdiff" run with a pager
...
We also do this for "osc request show -d" and similar friends.
Also, make run_pager() handle the case where the string is empty,
instead of having to make the caller handle it.
2010-09-12 23:22:18 +02:00
Sascha Peilicke
5d17235ea6
Now works, also fixed BUILD_DESCR parsing. Dangling file handle is now closed correctly.
2010-09-10 15:57:40 +02:00
Sascha Peilicke
9ceb3bfe94
initial changes.
2010-09-10 15:57:40 +02:00
Sascha Peilicke
4c25b73151
Streamlined 'bugowner' and 'maintainer' commands.
...
Both commands now check the current working-copy path if no arguments
are given and return the respective maintainer/bugowner.
Related to that, the help messages where updated and changed slightly
to look more similar.
2010-09-10 14:20:42 +02:00
8e92cebaf2
don't crash on add_role to a project (untested)
2010-09-09 22:08:24 +02:00
Marcus Huewe
7b5471e737
- fixed #634042 ("osc shows negative percentages of RPM installation completion")
2010-09-09 15:04:00 +02:00
Marcus Huewe
078400f6cc
- meter.py: reduced status bar (this one is used if there's no Content-Length header)
2010-09-09 14:58:33 +02:00
Marcus Huewe
fdc43cd9a2
- added validator params to "commitExtPackage"
...
- use True/False instead of 1/None for the "verbose_validation" parameter
2010-09-09 12:49:53 +02:00
Marcus Huewe
4a19faadf3
- Package class: moved validation code into a new method "validate"
...
- do_commit: call validate before asking the user for a commit msg
- Project class: added new validate_pacs method
- minor fixes here and there
2010-09-09 12:30:49 +02:00
Marcus Huewe
5cd8769f5a
- added '_commit_msg' to OPT_STOREFILES tuple
2010-09-09 09:52:59 +02:00
Marcus Huewe
9ad14a1d9c
- added new "repairwc" command which tries to repair an inconsistent working copy
2010-09-08 18:56:15 +02:00
Marcus Huewe
565ca7890d
- make download() less error prone
2010-09-08 17:41:14 +02:00
Marcus Huewe
7fb1d22593
- adapt old difflib format to python2.7's format
2010-09-08 12:10:09 +02:00
d69bd68ea3
add "review" and "superseded" as known request states.
2010-09-07 17:31:28 +02:00
Marcus Huewe
5b25135dea
- enable cpio bulk download by default
...
- removed option --cpio-bulk-download
- added new option --disable-cpio-bulk-download (to disable the default cpio
bulk download)
2010-09-07 16:08:05 +02:00
Marcus Huewe
29a97d17f8
- fixed indention
2010-09-07 16:06:50 +02:00
36c0245e80
fix usage of linkrev in show_xsrcmd5 function.
...
make usage of linkrev=base options in setlinkrev.
2010-09-07 15:03:01 +02:00
492edaa794
Go one step further with setlinkrev, use always xsrcmd5, even when given a normal revsion, except "-R" option is used.
2010-09-07 12:14:13 +02:00
10d999c479
setlinkrev is setting now the revision to xsrcmd5 by default to avoid later breakage on indirect links
2010-09-07 11:58:18 +02:00
Marcus Huewe
c85ee2c0cb
- removed "old" hack
2010-09-07 10:54:42 +02:00
Marcus Huewe
1043bc8145
- hrm newly created packages have no revision...
2010-09-06 17:57:30 +02:00
Marcus Huewe
eb17e3ffe1
- fixed "osc add /path/to/prj/pkg"
2010-09-06 17:50:56 +02:00
Marcus Huewe
5e72fa1284
- fixed "osc addremove": use delete_file(), initialize pac.todo correctly
...
- added new testcase
2010-09-06 15:28:23 +02:00
Marcus Huewe
814a383ed0
- fetch.py: check if we got all packages (--cpio-bulk-download is used)
2010-09-06 14:28:39 +02:00
Marcus Huewe
b3e538be90
- now product builds should work with "--cpio-bulk-download"
...
- util/rpmquery:
* added new methods "is_src", "is_nosrc" to check if the package is
a src rpm or nosrc rpm
* fixed "canonname": this never worked for src- or nosrc rpms
- minor code restructuring
Note:
in order to fetch the cpio archives osc uses "getbinarylist". The
drawback is that "getbinarylist" doesn't generate an ".errors" file
if we're requesting a non-existent filename.
2010-09-06 14:13:35 +02:00
root
c13fd84169
parisc should always build hppa
2010-09-06 10:40:24 +02:00
Marcus Huewe
31f14c7abe
- print more information if a PackageInternalError exception is caught
2010-09-03 19:59:14 +02:00
Marcus Huewe
57a3832a8e
- rewrote "def commit"
...
- the upload revision isn't used anymore instead we commit via
cmd=commitfilelist
- extended and adjusted testcases
2010-09-03 17:46:01 +02:00
Marcus Huewe
5c8b258a6b
- fixed read_sizelimit: added missing strip
...
- fix for commit 89c9cb67f4
: self.size_limit should be an int
- added testcase for local _size_limit constraint
2010-09-03 16:09:56 +02:00
Marcus Huewe
89c9cb67f4
- renamed limit_size to size_limit (only internal variable changes)
...
- added new method "get_files_meta" to the Package class (which handles
the the "skip file and service stuff")
2010-09-03 14:51:20 +02:00
Marcus Huewe
7dc2356c0e
- status: fixed state
...
if a file with state 'R' is removed from the wc its new state is '!'
2010-09-02 18:42:31 +02:00
feab43ed2f
hide depricated "expansion error" in legend
2010-09-02 16:44:02 +02:00
Marcus Huewe
94eb143d8c
- small fixes for do_status and get_diff
...
- get_diff:
* more helpful error message if a file was added and the local
file was removed again
* unify self.filenamelist and self.to_be_added if self.todo is empty
* extended testcases
- do_status: be able to run "osc st <nonexistentfile>"
2010-09-02 13:47:42 +02:00
e5016d0f64
support OBS 2.1 request diff
2010-09-02 10:30:13 +02:00
Marcus Huewe
b718669685
- raise OscIOError instead of IOError (adjusted testcases)
2010-09-02 10:23:37 +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
11d81fe776
initial service command for running source services remote or locally
2010-09-01 12:44:47 +02:00
Marcus Huewe
2f544dad9f
- disable sslcertck for http
2010-09-01 12:04:46 +02:00
Marcus Huewe
8bd4e4eddf
- fixed #514280 ("osc help text (0.119)")
2010-08-31 18:42:52 +02:00
Marcus Huewe
7802dfa9ad
- fixed patch header
2010-08-31 17:30:31 +02:00
Marcus Huewe
3ac330f7cd
- fixed _meta_mode + added testcase
2010-08-31 16:54:44 +02:00
Marcus Huewe
d8723ef94a
- get_source_file_diff returns a list instead of a str
2010-08-31 16:13:16 +02:00
Marcus Huewe
f5c5ee10d0
- update: take self.meta into consideration
2010-08-31 15:37:53 +02:00
Marcus Huewe
0a169fb7d7
- fix for commit a05a2a0a4f
2010-08-31 15:37:11 +02:00
Michal Vyskocil
a05a2a0a4f
read_filemeta: create the default _files if not exists
2010-08-31 14:52:46 +02:00
Michal Vyskocil
c30fc87c55
explicitly mark global variables
2010-08-31 14:43:43 +02:00
Marcus Huewe
1fb6c3c48c
- request_interactive_review: print request again (after displaying the diff)
2010-08-31 14:15:04 +02:00
Marcus Huewe
9c5c329a04
- get_diff: don't diff binary files
2010-08-31 13:30:37 +02:00
Marcus Huewe
3cf8a5bf88
- fixed commit (Package class)
...
- use "self.rev" when calling update_local_filesmeta (otherwise we might get a newer revision)
- write addlist after commit
2010-08-31 13:30:37 +02:00
Marcus Huewe
c4ceb7f700
- adjusted store_write_string calls so that the storefile ends with a newline
...
- adjusted testcase fixtures for this change
2010-08-31 13:30:37 +02:00
Marcus Huewe
c8e849b391
- fixed importsrcpkg
2010-08-31 13:30:37 +02:00
Marcus Huewe
2ffd46a9c2
- get rid of the init_package_dir mess
...
moved code into the staticmethod "init_package" of the Package class.
Cleaned up "checkout_package"
2010-08-31 13:30:37 +02:00
Marcus Huewe
9e8eeb8590
- removed old "make_diff", "comparePac" methods + old status code
2010-08-31 13:30:37 +02:00
Marcus Huewe
ca61d08bf3
- added new "get_diff" method to the Package class
...
- restructured "get_source_file_diff"
- commandline.py: adapted commands so that they use the new "get_diff" method
2010-08-31 13:30:36 +02:00
Marcus Huewe
d90228a7e3
- support a revert of a missing file which was added to the wc
2010-08-31 13:30:36 +02:00
Marcus Huewe
8050671870
- fixed logic errors
...
- fixed shutil.copyfile calls (use <filename>.copy+rename)
2010-08-31 13:30:36 +02:00
Marcus Huewe
7d8aeae6d8
- beautify
2010-08-31 13:30:36 +02:00
Marcus Huewe
9c0076d726
- added testcases for "def revert"
2010-08-31 13:30:36 +02:00
Marcus Huewe
80bf280d8b
- removed hack for #399247 - there's nothing special when expanding/unexpanding links
2010-08-31 13:30:36 +02:00
Marcus Huewe
3fefbfbc5f
- added some comments for known bugs
2010-08-31 13:30:36 +02:00
Marcus Huewe
88a961cae4
- rewrote addfile() and delete_file() methods from the Package class (for the details see below)
...
- addfile():
* contains the complete logic for adding a file (=> simplified addFiles(...))
* semantic fixes
- delete_file():
* semantic fixes
- different handling of newly added/replaced files:
* added/replaced files are tracked in the .osc/_to_be_added file
- introduced new file state 'R': 'R' == "replaced"
* usecase: osc rm <file>; osc add <file> => new state is 'R'
* conceptually 'R' is equal to 'A'
- adapted revert() to support the new state (+ some other minor fixes)
- added testcases for addfile() and delete_file()
2010-08-31 13:30:36 +02:00
Marcus Huewe
d5e4a81e8f
- addremove: don't remove storefile
2010-08-31 13:30:36 +02:00
Marcus Huewe
a17fbdcff1
- restore storefile in case it is lost (for whatever reason)
2010-08-31 13:30:35 +02:00
Marcus Huewe
7fc24f70a1
- bye bye old code
2010-08-31 13:30:35 +02:00
Marcus Huewe
bfb53cf67a
- raise an exception if a file is known by meta but no storefile exists
2010-08-31 13:30:35 +02:00
Marcus Huewe
b3d638774c
- do_revert: initial version
2010-08-31 13:30:35 +02:00
Marcus Huewe
7ca255cca0
- todo_send and todo_delete are no longer attributes (this also fixes commit ca45955ad60fc1dac9b013ba2d7cecbb9a132c6e)
2010-08-31 13:30:35 +02:00
Marcus Huewe
334fa82d39
- delete storefile if the commit was successful
2010-08-31 13:30:35 +02:00
Marcus Huewe
d8c59c8438
- update: support special handling for _service: files
2010-08-31 13:30:35 +02:00
Marcus Huewe
58ca66a417
- update: always use 'rev' query parameter when fetching files
2010-08-31 13:30:35 +02:00
Marcus Huewe
e91475508e
- support limit_size parameter during update
...
also added testcases
2010-08-31 13:30:35 +02:00
Marcus Huewe
5447dfbf12
- initial version of the new update mechanism
...
TODO: special handling for service files + respect limit_size parameter
2010-08-31 13:30:35 +02:00
Marcus Huewe
e74159754c
- bump version to 0.129git
2010-08-30 19:45:53 +02:00
Marcus Huewe
73f4adcba6
- bump version to 0.129
2010-08-30 19:36:52 +02:00
Marcus Huewe
0ae30e00e3
Merge branch 'master' of git@gitorious.org:opensuse/osc
2010-08-30 16:28:37 +02:00
Marcus Huewe
8307a7063f
- fixed "do_results"
2010-08-30 16:28:10 +02:00
Michal Čihař
48da9e2b71
Print http debugging to stderr.
2010-08-30 13:13:20 +02:00
Michal Čihař
c88d7fc4a3
Redirect debug output to stderr.
2010-08-30 13:06:17 +02:00
Marcus Huewe
9ac19b2c22
- request_interactive_review: don't abort if the diff fails due to status 404
2010-08-27 12:44:10 +02:00
Marcus Huewe
d5c91babc1
- "osc build --keep-pkgs dir": create dir if it does not exist
2010-08-26 18:50:20 +02:00
Marcus Huewe
788342ea1b
- oops (forgot 'not')
2010-08-26 17:38:47 +02:00