Marcus Huewe
3f54237a7c
- rewrote set_link_rev
2011-02-22 17:53:58 +01:00
70797b5593
Don't submit crud workarounds for problems which should be fixed on the other side.
...
Revert "avoid 404 in osc se -V caused by looking up the _history of nonexistant"
This reverts commit d7a1428d69
.
2011-02-21 13:41:02 +01:00
Juergen Weigert
d7a1428d69
avoid 404 in osc se -V caused by looking up the _history of nonexistant
...
packages. Workaround for BNC#673654
2011-02-21 00:26:54 +01:00
Marcus Huewe
a8fff94077
- minor cleanup
2011-02-17 14:22:16 +01:00
Marcus Huewe
da0e4bae30
- fixed do_service
2011-02-17 01:57:53 +01:00
Marcus Huewe
e493771454
- do_results: fixed --xml output
2011-02-17 01:31:04 +01:00
f0690d4e2f
- make it possible to run single source services, even when not specified in _service file.
...
(For example for doing a version update without creating a _service file: osc service lr update_source)
2011-02-15 09:41:03 +01:00
380f41b9a4
- avoid to create a _pull file when having a working copy (or the user runs in a dead end,
...
since we don't support pull on pulled sources, what is actually another bug)
2011-02-14 12:26:51 +01:00
Marcus Huewe
fa5e07f792
- do_detachbranch: added --message option; added some more error handling
2011-02-11 17:38:59 +01:00
Marcus Huewe
b318ec1698
- added new "detachbranch" command to replace a link/branch with its expanded sources
2011-02-11 17:12:35 +01:00
0bf76163ed
- add request and review "supersede" command, to supersede by an existsing request
2011-02-11 16:12:38 +01:00
Juergen Weigert
36007fb538
fixed se -V to not explode when a project match was found.
2011-02-11 15:11:50 +01:00
Marcus Huewe
5cb8468f3b
- don't fail if terminal encoding doesn't support unicode ( fixes #660445 )
...
- added util.safewriter.SafeWriter class
2011-02-11 02:45:13 +01:00
Marcus Huewe
8fc0a4e94b
- fix for 7d5893992d
2011-02-09 15:53:36 +01:00
Marcus Huewe
7d5893992d
- use Request's __cmd__ method for sorting
2011-02-09 15:51:26 +01:00
Ludwig Nussel
69458ca8c4
sort request lists by id
2011-02-09 14:57:33 +01:00
Marcus Huewe
09cee2a9f0
- fixed misleading note ( #644550 ("osc don't branch particular project"))
2011-02-08 17:09:48 +01:00
55f580f988
add force option to accept requests in review state.
2011-02-08 16:16:18 +01:00
Ludwig Nussel
75b662534f
fix osc my with obs 2.2 api
2011-02-04 10:35:02 +01:00
Ludwig Nussel
ba3bed8ecc
only catch http error, other exceptions are bugs
2011-02-04 10:35:02 +01:00
Ludwig Nussel
99ce83352c
fix indent
2011-02-04 10:35:02 +01:00
Ludwig Nussel
dd8b3ee681
Don't request message when branching a package
2011-02-03 14:25:20 +01:00
Marcus Huewe
f18b4d6a36
- fix for 0fd0ff2685
2011-02-02 19:35:32 +01:00
Juergen Weigert
0fd0ff2685
Help text of co -s was indentical to co -S, fixed to say local instead of server.
...
Fixed -s to chdir into the project for the sake of /usr/lib/obs/service/verify_file
2011-02-02 17:11:14 +01:00
Marcus Huewe
d174599b8d
- escape % in help text
2011-02-01 20:07:29 +01:00
Marcus Huewe
1a89821f36
- fixed indention+small cleanup
...
- added "XXX" comment due the openSUSE specific "osc co obs://" implementation
2011-02-01 18:37:17 +01:00
Juergen Weigert
9228cebdc5
osc checkout '%{disturl}' is now supported.
2011-01-31 17:49:04 +01:00
Marcus Huewe
f9b1bd5c18
- do_search: '::' isn't a perl specific namespace/package/module separator
2011-01-30 21:37:45 +01:00
Marcus Huewe
d4b4182220
- parse_repoarchdescr: use similar build descr "guessing" mechanism like bs_srcserver (but it still differs)
2011-01-30 16:38:11 +01:00
Marcus Huewe
880e7d5cb2
- do_request: added "--edit" option to edit a submit action ("osc rq show <id> --edit")
2011-01-30 14:24:21 +01:00
Marcus Huewe
dd1237218c
- clone_request: return the "targetproject"
2011-01-29 23:14:19 +01:00
Marcus Huewe
919c347c7f
- handle requests with multiple (submit) actions
2011-01-29 18:47:26 +01:00
Marcus Huewe
d5173cfc01
- use get_actions method
2011-01-29 17:47:28 +01:00
Marcus Huewe
68d559e343
- refactored request diff code
2011-01-29 17:24:45 +01:00
Marcus Huewe
89ceb20abb
- fix for db9e7c7974
2011-01-28 15:52:10 +01:00
79656a45e1
fix "osc add some_git_url", using now official source service instead of unknown git_pull
2011-01-26 17:29:43 +01:00
e5333f0b23
support project wide source services
2011-01-26 17:22:03 +01:00
373727ba55
new source service commands "localrun" and "disabledrun" to generate files without _service: prefix
2011-01-26 16:30:57 +01:00
Marcus Huewe
8a488d3b6d
- reworked do_requestmaintainership()
2011-01-25 21:06:28 +01:00
Marcus Huewe
db8818c30f
- do_changedevelrequest, do_deleterequest: use Request object to create the request
...
- removed: core.create_delete_request(), core.create_change_devel_request()
2011-01-25 20:41:42 +01:00
Ludwig Nussel
b1be0f84ea
refactor diff command
2011-01-25 16:53:31 +01:00
Ludwig Nussel
6be91ceda0
download debugsource with --debug rather than --source
2011-01-25 16:53:31 +01:00
eb1c5e0f48
add better support for reviews of requests. User api side request search if available.
2011-01-24 08:29:47 +01:00
Marcus Huewe
09b323c2d3
- globally ignore broken pipe
2011-01-22 16:41:06 +01:00
Sascha Peilicke
1491dd4f4b
Don't crash on broken pipe (fixes bnc#661963).
2011-01-21 11:22:18 +01:00
Sascha Peilicke
b66ab73475
Don't mix tabs with spaces.
2011-01-21 11:13:18 +01:00
Sascha Peilicke
0a40037d27
Use './binaries' as default directory for getbinaries.
...
Previously, there was no directory set when fetching multiple arches and
distinct dirs for specific arches. Should be more consistent now.
2011-01-21 10:35:47 +01:00
Marcus Huewe
dd377b07a6
- fixed #663270 ("osc importsrcpkg --commit fails")
2011-01-20 20:39:20 +01:00
507567be71
support to view the commit history of deleted packages
2011-01-19 20:26:38 +01:00
Marcus Huewe
7fa621be16
- do_delete: inform about non existent skipped file
2011-01-18 19:38:33 +01:00
Marcus Huewe
955ee78e8b
- fix for my last commit
2011-01-17 19:33:02 +01:00
Marcus Huewe
78cf44a5bc
- do_search: if --involved, --bugowner etc. is used default to <username> if no search_term is specified
2011-01-17 19:28:50 +01:00
8fed7847e4
fallback to unexpanded diff mode on "osc diff" on merge error. Same behaviour as rdiff is doing.
2011-01-12 17:09:41 +01:00
d11e9f8514
add "osc less", it is "osc cat" + pager
2011-01-12 17:04:22 +01:00
f729ea8e38
fix add_me request
2011-01-12 11:29:46 +01:00
c226327ae5
add option to request the additon of a group to a project or package and rename add_role to add_user to make the difference obvious.
2011-01-11 20:02:48 +01:00
Rohan McGovern
2d5b853aa0
Expand links when checking out a single file.
...
Prior to this change, `osc co PROJECT' and `osc co PROJECT PACKAGE'
would both follow links, but `osc co PROJECT PACKAGE FILE' would not.
To make matters even more confusing, `osc ls PROJECT PACKAGE FILE'
does follow links - so, for linked files, an `ls' would tell you a file
exists, then `co' would give a 404 error.
This change fixes the inconsistency.
2011-01-11 19:56:29 +01:00
06e285130b
add createrequest "add_me" shortcut
2011-01-10 13:12:09 +01:00
8bad2ed16b
fix crash on missing initialisation
2011-01-08 15:06:36 +01:00
db9e7c7974
- add blt and rblt commands, aka "buildlogtail" and "remotebuildlogtail" to show
...
just the end of a build log (for getting the fail reason faster).
CHANGE: the --start parameter is now called --offset
2011-01-07 23:05:44 +01:00
Michal Vyskocil
ef37e6b721
Drop pre_checking.sh ( 8ea5bc7
) due security problems
2011-01-07 09:17:50 +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
Michal Vyskocil
8ea5bc7f04
run pre_checkin.sh on build and commit
...
The pre_checkin.sh is script run after each checkin of package into
SUSE. Osc build and commit commands now runs it automatically too,
unless --no-precheckin is specified.
2011-01-05 16:12:25 +01:00
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
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
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
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
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
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
Marcus Huewe
570d4f7f70
- do_config: added --dump and --dump-full options to dump the complete configuration
2010-12-18 17:16: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
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
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
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
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
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
8321e41096
fix review state change for review by_group
2010-11-09 17:19:56 +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
Marcus Huewe
785e4dcb1f
- added new "clone_request" method
2010-10-26 15:34:32 +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
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
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
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
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
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
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
9ad14a1d9c
- added new "repairwc" command which tries to repair an inconsistent working copy
2010-09-08 18:56:15 +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
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
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
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
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
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
8bd4e4eddf
- fixed #514280 ("osc help text (0.119)")
2010-08-31 18:42:52 +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
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
80bf280d8b
- removed hack for #399247 - there's nothing special when expanding/unexpanding links
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
b3d638774c
- do_revert: initial version
2010-08-31 13:30:35 +02:00
Marcus Huewe
8307a7063f
- fixed "do_results"
2010-08-30 16:28: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
46c4f1e1d5
- simplify
2010-08-23 10:08:09 +02:00
JF Ding
c61e4a514e
vc: to support meego changelog style if detected
...
need "vc" command shipped with meego-packaging-tools
2010-08-23 09:58:13 +02:00
Danny Kukawka
5a49daa69a
fix warnings from pychecker
...
Fixed several warnings from pychecker as e.g.:
- (XY): shadows builtin
- Local variable (XY) not used
2010-08-20 14:34:41 +02:00
Danny Kukawka
abce7cd8fc
use correct the user (depending on the apiurl)
...
Use correct the user (depending on the apiurl) as done in commit
c93baf1f58
.
2010-08-20 13:25:32 +02:00
Danny Kukawka
72eae319b8
removed whitespace in help text
2010-08-20 13:23:23 +02:00
Marcus Huewe
eeb05059ec
- fixed commit 2ae9a9453a
2010-08-19 13:43:48 +02:00
Danny Kukawka
50f6ba67ea
changed 'osc request revoke' to prevent set same state twice
...
Changed 'osc request {reopen,accept,decline,wipe,revoke}' to check
the current state and ask the user if the requested state is the
same as the current state of the request. This should prevent e.g.
useless state changes (set to revoke multiple times in a row) by
accident.
2010-08-18 17:58:42 +02:00
Danny Kukawka
d2b9015d8f
small typo fix
2010-08-18 16:20:24 +02:00
Danny Kukawka
2aede1039f
changed change_request_state() to return only the status code
...
Changed change_request_state() to return only the status code,
print out some more usable message for result of change_request_state()
where needed.
2010-08-18 16:17:34 +02:00
Marcus Huewe
c93baf1f58
- use correct the user (depending on the apiurl)
2010-08-18 12:40:43 +02:00
Danny Kukawka
6380c91d0f
removed left over debug messages
2010-08-18 11:46:57 +02:00
Danny Kukawka
1477193694
added 'osc reqmaintainership'
...
Added 'osc reqmaintainership' as shortcut for
'osc creq -a add_role USER maintainer PROJECT PACKAGE' since this
command is hard to find for (new) users.
Works also from checked out packages. If no user is specified,
the command takes the current osc user from the config.
2010-08-18 11:42:50 +02:00
Marcus Huewe
e209766084
- renamed "RuntimeError" to "ExtRuntimeError" to avoid confusion with python's "RuntimeError" class
...
just a "cosmetic" changes
2010-08-16 16:27:00 +02:00
Ludwig Nussel
08f12721fe
another rq fix
2010-08-13 09:51:32 +02:00
Ludwig Nussel
ef7a82fe97
fix osc rq
2010-08-13 09:43:32 +02:00
Ludwig Nussel
fb7911ea86
fix sr -d again
2010-08-13 08:58:27 +02:00
Juergen Weigert
b3fb8b51fb
tabs to spaces. Damit kein Unglueck nicht geschicht. Hello Danny.
2010-08-13 00:30:05 +02:00
Juergen Weigert
ac3bbf9bc7
fixed and simplified result sorting expression in osc search
2010-08-13 00:07:59 +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
Juergen Weigert
c23002c953
osc search now returns sorted by proj and pack,
...
not just by proj with random pack order.
2010-08-12 20:23:28 +02:00
Juergen Weigert
1b38b8c338
osc search now returns sorted by project, and sorted by package,
...
not just sorted projects and random package order.
2010-08-12 20:21:04 +02:00
Marcus Huewe
598a458718
- fixed #613513 ("osc copypac to another OBS instance fails if source package uses links")
...
now links are always expanded if we copy across different buildservice instances
2010-08-11 22:42:16 +02:00
Marcus Huewe
e29b227b5b
- do_status: added '--show-excluded' option to show all files (except the store dir)
...
Additionally "osc st" doesn't show dirs anymore if it's called from
a package wc because dirs cannot be added to a package
2010-08-11 18:05:12 +02:00
e0172293df
check the right options for request and review command
2010-08-10 16:36:29 +02:00
Marcus Huewe
eada1234a9
- do_signkey: don't modify list during iteration
2010-08-08 23:45:04 +02:00
Marcus Huewe
b213b9695b
- a more generic version of ebd4b1d893
(the same logic applies to *.dsc, *.kiwi)
2010-08-08 23:15:25 +02:00
1244308d47
"osc sr" used for an entire project is now offering also to supersed requests
...
when they got cloned by checking the attribute.
It does not work from package dir atm, this entire behaviour is not a good design.
But I lack a good idea how to design it better atm.
2010-08-05 17:00:45 +02:00
ef2d0aa2e9
add "request clone" command for OBS 2.1
2010-08-05 15:54:48 +02:00
1e2bbf941c
fix comment message transfer for "review add" command
2010-08-05 10:24:20 +02:00
Ludwig Nussel
ebd4b1d893
prefer spec files that match the directory name only if there are no debian or kiwi files
...
partially reverts commit 1b6fbd7d05
.
2010-08-04 17:26:59 +02:00
5bd78d44f8
another try for prjresutls, do not show "excluded" packages/repos by default,
...
but show the manual disabled ones.
2010-08-04 17:16:59 +02:00
Ludwig Nussel
a4a52b62ae
fix and rename osc pr --show-non-building
...
fix osc pr --show-non-building to actually do what it is supposed to
do. Change default to not do filtering by renaming the option to
--hide-disabled
2010-08-04 16:49:57 +02:00
Ludwig Nussel
def93eb9d9
fix rq show
2010-08-03 09:35:39 +02:00
Danny Kukawka
f2788628c6
fix output of 'osc buildinfo' if parameter are missing
...
Fixed output of 'osc buildinfo' if parameter are missing due to change
from commit cb18807622
. Show only the
available repos (and not the arch) if called from a checked out
package.
2010-07-31 13:30:26 +02:00
Marcus Huewe
1b6fbd7d05
- don't use spec by default if multiple build description files are found
...
otherwise it'll lead to unexpected behaviour if the repository is for instance
debian
2010-07-30 14:02:23 +02:00
cb3691426c
add "review add" command
2010-07-30 11:36:17 +02:00
Danny Kukawka
db08e0b496
fixed several functions to respect 'osc -A'
2010-07-29 17:29:51 +02:00
cb18807622
do not crash via using not anymore supported /platform controller (unsupported since OBS 1.0)
...
Unify "repos" and "repositories" command. Make the command working at all as specified.
2010-07-29 17:04:39 +02:00
753893222a
support list of open reviews
2010-07-29 13:46:56 +02:00
b5bd00fc8f
make "osc api" syntax compatible with curl parameters
2010-07-29 11:43:56 +02:00
b4a1f83e01
* add the new "dist" command to NEWS file.
...
* disable the "DISCONTINUED" support for now, because this is just a hack
which only works with one instance. We need a server side supported approach
in case we need this.
* Show repository to be used and the suggested reponame for own project
2010-07-29 07:37:54 +02:00
Danny Kukawka
ead799632f
Merge branch 'master' of gitorious.org:opensuse/osc
2010-07-28 16:05:36 +02:00
Danny Kukawka
290a3f0f90
added new command 'osc distributions'
...
added new command 'osc distributions' to get info about active
and discontinued distributions.
2010-07-28 16:04:27 +02:00
4c6ffb7607
prjresult: Do not show package rows or repo columnss by default which are not building at all (in disabled or excluded)
...
A Rudi feature ;)
2010-07-28 15:38:01 +02:00
10f4a6240d
remove a file from conflict list in any case, when it gets removed
2010-07-28 12:13:46 +02:00
d128ff4601
generated service files are always to be skipped regarding status and commit
2010-07-28 12:08:40 +02:00
Henne Vogelsang
98aa12c9a3
fix links that point into the wiki
...
Signed-off-by: Henne Vogelsang <hvogel@opensuse.org>
2010-07-27 17:24:05 +02:00
Danny Kukawka
33dc89d805
changed print_repos() to print only repos on request
...
Changed print_repos() to print only repos (and not repo and arch)
on request since 'osc buildinfo' needs only the repo as parameter.
Fixed do_repositories() apiurl handling and changed to get the
project from checked out project or package dir if available.
2010-07-27 14:31:12 +02:00
Danny Kukawka
eb0cb6dee9
don't raise error message after self.print_repos()
...
Don't raise error message after self.print_repos(), since the
message will never be printed.
2010-07-27 14:03:26 +02:00
Danny Kukawka
6712b44bee
Merge branch 'master' of gitorious.org:opensuse/osc
2010-07-27 14:01:19 +02:00
Danny Kukawka
35536475e7
fixed 'osc buildconfig'
...
Fixed 'osc buildconfig'. Don't ask for package and arch since the
API don't allow to filter for a package or a architecture.
Remove related and useless parameter from get_buildconfig() in
core.py
2010-07-27 13:58:52 +02:00
Juergen Weigert
8830d396cb
- fixed references into en.opensuse.org to honor the new wiki structure
...
(redirects added in the wiki for the three URLs on 'osc help' -
all other URLs remain broken until this osc gets deployed)
2010-07-26 19:45:42 +02:00
Marcus Huewe
de884b719c
- do_buildlog: show appropriate error msg if too many args are specified
2010-07-26 19:02:48 +02:00
Danny Kukawka
b3c5204b59
fixed serveral warnings from pychecker.py
...
Fixed serveral warnings from pychecker.py like such:
- Parameter ($) not used
- Local variable ($) not used
Including fixes like:
- remove not needed imports
- don't read apiurl in core.py from config if already available via
function parameter
- delPerson(): check for user as e.g. in addPerson()
2010-07-26 16:46:21 +02:00
Marcus Huewe
e2ab1a520e
- do_buildinfo: support --prefer-pkgs
2010-07-26 15:41:02 +02:00
70fb883b59
point the users to the "branch" command
2010-07-21 09:46:54 +02:00
ad28c0552e
import "osc aggregate --nosources" feature, implemented by brook.hong@nokia.com
2010-07-20 14:48:27 +02:00
Michal Čihař
74f583823f
Fix typo.
2010-07-19 11:10:15 +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
Marcus Huewe
0fbfcb4fdb
- fixed SyntaxError
2010-07-13 14:53:25 +02:00
f2be29f0a0
add signkey --extend command
2010-07-13 13:53:47 +02:00
Danny Kukawka
3ed00b4568
changed do_repos() to filter out disabled repos of a package
...
Changed do_repos() to filter out disabled repos of a package. Read
package from checked out package dir. This changes also the output
of getbinaries if args are missing and the user is within a checked
out package dir. Show only enabled repos in this case.
Allow also osc repos [PROJECT] [PACKAGE].
2010-07-12 14:56:08 +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
a00c0c4006
allow to restrict 'my pkgs' to maintained ones
2010-07-07 16:41:09 +02:00
Marcus Huewe
9fadbb42fd
- more precise error message about missing source_validator
2010-07-06 17:57:10 +02:00
Danny Kukawka
f8f448b6ba
respect -A for 'osc deleterequest'
2010-07-06 14:18:24 +02:00
Danny Kukawka
bd821937f6
changed 'osc deleterequest' to get info from checked out pac/proj
...
Changed 'osc deleterequest' to get info from checked out package or
project dirs. Added edit message about what the user requested.
2010-07-06 14:16:24 +02:00
Danny Kukawka
28441bfaeb
make getbinaries also work in project dirs
...
Maked getbinaries also work in project dirs. If osc getbinaries
get called in a checked out package directory, the binaries for
all packages of this project get checked out.
2010-07-01 15:32:21 +02:00
Ludwig Nussel
cd51a420d7
less verbose results output by default
...
especially factoy results often fill the screen with lots of "blocked" errors. So don't display the details by default unless --verbose is given
2010-06-30 13:40:02 +02:00
Ludwig Nussel
14d4ece2fb
allow to override apiurl for 'build'
2010-06-30 13:39:59 +02:00
Juergen Weigert
382dd29e03
Make 'trust always' more verbose, so that a user learns how to undo its effect.
...
Removed a few tabs.
2010-06-29 15:32:53 +02:00
073e2b0517
support re-open of requests
2010-06-29 12:13:24 +02:00
Jan Engelhardt
150cdebf6d
osc/commandline: fix reoccurring typo
...
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
2010-06-28 08:41:21 +02:00
Danny Kukawka
1438ca5c1b
Merge branch 'master' of gitorious.org:opensuse/osc
2010-06-27 21:21:08 +02:00
Danny Kukawka
260cb3ab00
extended 'osc wipebinaries' to read package/project from dirs
...
Extended 'osc wipebinaries' to read package/project from checked out
directories if possible.
2010-06-27 19:07:46 +02:00
Ludwig Nussel
377ee28887
add support for --oldpackages
2010-06-25 11:23:44 +02:00
Ludwig Nussel
da0ccd5d8c
auto apiurl for osc meta
2010-06-23 14:47:52 +02:00
Ludwig Nussel
c6f770cf27
fix getbinaries --sources
2010-06-23 14:47:52 +02:00
Danny Kukawka
a9b05119d6
another fix for osc results -r/-a in project directories
...
Fixed osc results -r/-a in project directories by fixing filtering
of architecture and repository (they are arrays and not strings).
2010-06-21 17:10:25 +02:00
Danny Kukawka
1c02a1bd06
fixed some warnings from pychecker
2010-06-15 17:07:14 +02:00
Danny Kukawka
343fd89f4c
fixed whitespaces in osc getbinaries help text
2010-06-15 16:38:48 +02:00
01d349d0e8
make it possible to run local source services on checkout/update
2010-06-08 11:24:10 +02:00
Ludwig Nussel
2ba65c531a
fix osc log without arguments
2010-06-07 09:02:00 +02:00
e4615a324b
add propper error handling in case running "osc log" outside of checked out project/package
2010-05-27 07:21:33 +02:00
b0b5953b3e
support history of projects via "osc log"
2010-05-27 07:17:27 +02:00
Marcus Huewe
24d3b18e13
- cleanups
...
- fixed do_log
- use "safe writes" in init_package_dir()
2010-05-27 02:18:00 +02:00
d2dbc069b0
use correct apiurl when triggering a rebuild of local package
2010-05-25 17:50:36 +02:00
6860613ba9
harmonized osc parameters, user always "-M" for "--meta"
2010-05-25 14:54:11 +02:00
2ae9a9453a
fix commit of files in meta mode
2010-05-25 14:54:11 +02:00
Marcus Huewe
c33d229953
- fixed permissions
2010-05-24 22:40:31 +02:00
brook hong
11c2f0a510
implement https://features.opensuse.org/309351
2010-05-24 19:28:44 +08:00
Marcus Huewe
3ae6d5dd07
- getbinaries: cleanup
2010-05-22 18:27:11 +02:00
1e5b0e2ffb
runtime fixes for last commit
2010-05-22 08:55:39 +02:00
6cbff920dc
add validation verbose mode for easier debugging
2010-05-22 08:51:04 +02:00
1e985f38e2
* offer access to deleted projects/packages
...
* allow checkout of meta data of packages
* process validators in sorted order
2010-05-22 08:23:09 +02:00
da0c0f6b86
support undelete of project or package
2010-05-21 19:03:20 +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
Pavol Rusnak
273fabb4da
fix osc add
2010-05-19 15:34:59 +02:00
41f925addc
allow to set a temporary comment for a review via "osc review new"
...
(Fate #307506 )
2010-05-19 14:12:49 +02:00
beae2c0cdd
when doing "osc up -e" or "osc up -u" the actual update did not happen,
...
because revision md5 was used from local data. Doing an update of it before.
2010-05-19 13:02:23 +02:00
87a6bf4205
approvenew is a little bit less horrible then acceptallnew, isn't it ?
2010-05-19 12:50:52 +02:00
9f65f138ed
add "osc rq acceptallnew $PROJECT" command to show and accept all request in new state.
...
This makes sense esp. for projects which work with default reviewers before.
(like it is planned for openSUSE:Factory).
In this way the review can happen during the week, people get feedback ASAP when review
fails, but the entire rebuild does not happen before the everything get accepted.
2010-05-19 12:29:56 +02:00
a337968dcb
* support branching with --force, to override existing target.
...
* Sorted OBS 2.0 features in NEWS file
2010-05-19 10:47:01 +02:00
c1de76cc84
allow --force branch, even when target already exists
2010-05-17 20:14:49 +02:00
390b9659fe
extent command description for add
2010-05-14 16:59:45 +02:00
1ca862308b
add support for obs download_url source service.
...
"osc add $URL" is adding a download_url source service to the package now.
This means the server is downloading the file itself, important for reviewing
version updates.
2010-05-14 16:45:58 +02:00
Ludwig Nussel
d292c83205
guess spec file name from current directory
2010-05-12 15:56:33 +02:00
d96aff0ae7
Merge branch 'master' of gitorious.org:opensuse/osc
2010-05-08 08:04:55 +02:00
1c24457bed
fix copypac with same source and destination:
...
If a revision is specified, this is actually a revert call and it has to work.
2010-05-08 08:03:56 +02:00
Ludwig Nussel
81824b3d04
don't die if saving repo list fails
2010-05-07 11:57:42 +02:00
Ludwig Nussel
05e0cb620b
whitespace fixes
2010-05-05 09:03:51 +02:00
Danny Kukawka
5a19362570
add run_pager() and make osc log/diff work like git log/diff
...
Added new function run_pager() to get 'osc log/diff' work like
'git log/diff' which send the output to PAGER (which is by default:
less or what's defined in the environment).
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:30 +02:00
Danny Kukawka
e89e61380b
make sure global option -A works too in a checked out package
...
Make sure global option -A works too in a checked out package.
Always check if -A was passed to command line and use it
instead of the package/project dir information.
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:24 +02:00
Danny Kukawka
8bdb78cc8f
get apiurl for 'osc my' from checked out package
...
Get apiurl for 'osc my' from checked out package if possible.
Make sure that global option -A works to in a checked out
package.
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:24 +02:00
Danny Kukawka
e35e161b24
added 'osc getbinaries REPOSITORY' to checkout all binaries
...
Added 'osc getbinaries REPOSITORY' to checkout all binaries
(incl. source package) of a REPOSITORY. New option checks out
all architectures into subdirs named as the arch.
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:20 +02:00
Danny Kukawka
debfd71048
fix close() statement in download()
...
From 257d823c45b940604c8d3d992b1e1f2da3746074 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@web.de>
Date: Fri, 30 Apr 2010 17:17:17 +0200
Subject: [PATCH] fix close() statement in download()
Fixed warning from pychecker by fixing the close()
statement in download().
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-03 22:33:56 +02:00
Ludwig Nussel
af467cea2d
allow to override vm type on command line
2010-04-30 15:58:31 +02:00
Ludwig Nussel
cfeee1c95d
store list of repos for offline use
2010-04-30 15:58:31 +02:00
Marcus Huewe
95a6643769
- minor cleanup
2010-04-30 15:25:24 +02:00
Marcus Huewe
d55c16cce4
- simplify comment:)
2010-04-30 15:19:35 +02:00
Ludwig Nussel
59b19bd012
use common function for launching an editor
2010-04-28 11:52:15 +02:00
Ludwig Nussel
a0aba626b3
project and package auto detection for osc meta
2010-04-28 11:52:15 +02:00
Ludwig Nussel
cecd75db4d
option to hide download meter when finished
2010-04-28 11:52:14 +02:00
Michal Vyskocil
5d2587e916
print the error message on multiple description files
2010-04-27 18:23:03 +02:00
Michal Vyskocil
f3d7b0e4fc
use glob when searching the build description
2010-04-27 18:18:34 +02:00
Michal Vyskocil
6e388a266a
osc branch reads project/package in package directory
...
The osc branch (withouth arguments) is able to read the project/package
from current package dir and use it.
2010-04-27 12:23:03 +02:00
Marcus Huewe
d0659fb0f4
- core.request_interactive_review(): backward compatibility fix
2010-04-26 17:57:57 +02:00
4db40e23f5
support OBS 2.0 "unresolvable" state, former expansion error state is still supported.
2010-04-23 14:38:34 +02:00
Ludwig Nussel
fc27b4816b
make osc rebuild pick package from working directory
2010-04-23 12:01:24 +02:00
bf7213b768
add a --size-limit option to checkout and update.
...
Very usefull, if you want to ignore large tar balls over slow connections
and just want to do some spec file changes.
2010-04-22 15:27:54 +02:00
Marcus Huewe
4290c5143b
Merge branch 'master' of git://gitorious.org/opensuse/osc
2010-04-21 15:19:09 +02:00
Marcus Huewe
ba7993ffb0
- backward compatibility fix (only a recent api/backend supports the missingok parameter)
2010-04-21 15:18:20 +02:00
Michal Vyskocil
1325b2813a
--csv/--format options for osc results
2010-04-20 15:43:41 +02:00
Marcus Huewe
d0abff3210
- use oscerr.UserAbort()
2010-04-20 15:22:03 +02:00
Jan-Simon Möller
cbed877aa7
cleanup
2010-04-17 15:19:41 +02:00
Jan-Simon Möller
7b5e9374d2
Add support for --preload and --offline to osc build.
...
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2010-04-17 13:07:15 +02:00
Marcus Huewe
d3a01a72c0
- do_diff()/do_rdiff(): added "--missingok" parameter
...
- always use "missingok=1" when showing the diff for a sr
2010-04-10 15:44:15 +02:00
Marcus Huewe
b1c06883b4
- simplify
2010-04-09 03:37:04 +02:00
Marcus Huewe
120d890807
- handle linkerrors more gracefully
...
- show revision
2010-04-09 01:22:26 +02:00
Marcus Huewe
42cc46ec7e
- fix for osc chroot
2010-04-08 23:15:55 +02:00
Michal Vyskocil
a4a179f1d9
print a real content of linkinfo->project and package, not the same filelist twice
2010-04-06 11:07:56 +02:00
Michal Vyskocil
10bda9b4eb
do not compare boolean with 0
2010-04-06 11:04:48 +02:00
Michal Vyskocil
c763369c17
set link_seen after meta_get_file_list
...
1.) not necessary to iterate through list to test the occurence of a
string in a list
2.) removed duplicate tests
2010-04-06 11:00:45 +02:00
Ludwig Nussel
ca1bb38bbe
always ask for message when branching a package
2010-03-30 14:13:44 +02:00
Marcus Huewe
6b10a47fbc
- only allow --diff for submit requests
2010-03-30 00:31:01 +02:00
Marcus Huewe
dc94759aff
- added "--non-interactive" option to "osc rq show"
2010-03-23 16:21:09 +01:00
Juergen Weigert
ad5b23d975
added 'bse' as a shortcur for 'search --binary'
2010-03-20 12:27:27 +01:00
Marcus Huewe
fd3d0685a2
- fixed search
2010-03-18 17:57:25 +01:00
Marcus Huewe
c7c1f19445
- fix for commit 54513a23de
2010-03-17 17:32:59 +01:00
Marcus Huewe
23578e72fd
- use sys.stdout.write() instead of print
2010-03-17 15:28:10 +01:00
Marcus Huewe
0ee8d82378
- added slightly modified version of Michal Marek's <mmarek@suse.cz> patch to search binary packages
2010-03-15 16:08:00 +01:00
Marcus Huewe
47beb996ff
- minor changes
2010-03-15 13:34:38 +01:00
Marcus Huewe
88474d392d
- do_request(): added "--involved-projects" option to show all requests for project/packages where USER is involved
...
- code restructuring:
* added new get_user_projpkgs_request_list() method
* added new get_user_projpkgs() method
2010-03-13 21:06:18 +01:00
Marcus Huewe
4dfaad4795
- rewrote do_my()
...
I hope we didn't lose a feature/functionality. If you notice some unexpected
behaviour please tell me.
2010-03-13 14:06:48 +01:00
Marcus Huewe
aaf5d9dfaf
- backward compatibility fix: old apis don't support role filtering
2010-03-12 15:22:11 +01:00
Marcus Huewe
2e011e70d3
- updated help text
2010-03-10 23:43:04 +01:00
Marcus Huewe
c6c9506640
- reworked do_search() and osc's search interface
...
- removed build_xpath_predicate()
- rewrote search()
- added xpath_join() to join two xpath expressions
- TODO: backward compatibility: currently do_search() requires a recent
api version from git master in order to do some role filter stuff
2010-03-10 23:36:09 +01:00
Marcus Huewe
bc1322803d
- check args/options
2010-03-09 12:22:04 +01:00
Juergen Weigert
38c0621a90
osc ls -u -- same logic here as mls suggests for osc cat.
2010-03-08 23:52:51 +01:00
Michael Schroeder
9df5940b97
- turn option upside down for consistency
2010-03-08 10:56:29 +01:00
Juergen Weigert
f9855a821b
"osc cat" now auto-expands through link. New option -n to suppress this.
2010-03-08 01:31:36 +01:00
Marcus Huewe
bc0cb438b8
- added "config" command to set/get/delete a config option
...
maybe we should move the whole config stuff into a new config object.
This would make things much easier.
2010-03-07 22:50:11 +01:00
Stephan Kulow
d6968933ee
changing some strings in the name of mls
2010-03-05 12:54:12 +01:00
Stephan Kulow
eb9f016338
diff3 -E is much easier to read
2010-03-05 11:45:50 +01:00
f9aa6c7271
support package search with project results needed for maintained search.
...
This is for sure not nice, but fixes #583570 for now. (we need really to re-think
the osc search implementation)
2010-03-02 09:52:18 +01:00
Marcus Huewe
8e7a171cf2
Merge branch 'master' of git://gitorious.org/opensuse/osc
2010-03-02 01:34:58 +01:00
Marcus Huewe
f0d07774f4
- added "--message" option to branch cmd
2010-03-02 01:34:17 +01:00
Pavol Rusnak
8d551e0a69
fix whitespace
2010-02-28 02:30:13 +01:00
Klaas Freitag
22b684fa38
Merge branch 'master' of git@gitorious.org:opensuse/osc
2010-02-27 20:15:15 +01:00
Klaas Freitag
43d8fd0dbd
fixed links to documentation in the wiki in osc help
2010-02-27 20:14:25 +01:00
Pavol Rusnak
90c4358da2
treat pylint warnings
2010-02-27 20:11:15 +01:00
Marcus Huewe
c6b74d6425
- added --exclude-target-project <prj> option to "osc rq list"
...
- reworked get_request_list()
2010-02-25 22:56:21 +01:00
Marcus Huewe
74c73ee8a2
- keyring fix
2010-02-25 14:13:02 +01:00
Ludwig Nussel
32e99306b4
add vim mode lines to avoid evil tab characters :-)
2010-02-25 09:53:45 +01:00
Marcus Huewe
f16cc7e667
- convert tabs to spaces...
2010-02-24 20:02:52 +01:00
Ludwig Nussel
fd3977dc59
make osc built in text meter display progress immediately
2010-02-24 14:09:49 +01:00
Ludwig Nussel
47edb69394
fix up 'cr' without arguments
...
also add footer with hint what to enter as message
2010-02-24 13:46:43 +01:00
Ludwig Nussel
4127574112
lbl: show log of last built package if no args specified
2010-02-23 15:21:20 +01:00
David Greaves
d95ae68724
Added '--build-uid uid:gid|caller' feature to specify abuild id in chroot
2010-02-22 18:45:24 +00:00
Marcus Huewe
a5a4f6da7a
Merge branch 'master' of git://gitorious.org/opensuse/osc
2010-02-18 14:21:17 +01:00
Marcus Huewe
1510533358
- added help text to localbuildlog
...
- reworked localbuildlog
2010-02-18 14:20:40 +01:00
57a8533ee8
fix linktobranch apiurl usage
2010-02-18 14:14:48 +01:00
Michal Vyskocil
f5033535c1
buildurl support for buildlog command
2010-02-16 13:49:14 +01:00
Michal Vyskocil
2ec430ccfe
fix remotebuildlog help
2010-02-16 12:23:25 +01:00
Marcus Huewe
ef98fdba4f
Merge branch 'master' of git://gitorious.org/opensuse/osc
2010-02-12 15:55:01 +01:00
Marcus Huewe
b877b7bcfa
- added "localbuildlog" command
2010-02-12 15:54:33 +01:00
c2a541ab0c
typo fix
2010-02-12 14:13:48 +01:00
Ludwig Nussel
d5ae3ef2b4
command line options for cpio (default=off)
2010-02-12 11:23:03 +01:00
a1230a0302
speak about supersed when doing a supersed ;)
2010-02-12 11:16:37 +01:00
Ludwig Nussel
78d2e9c314
convenience mode for changedevelrequest
2010-02-11 12:47:47 +01:00
Ludwig Nussel
cb5ac5af3e
store commit message so it doesn't get lost on failure
2010-02-11 12:47:47 +01:00
Marcus Huewe
3a909cf75b
- review a request interactively
...
per default this "feature" is disabled
2010-02-11 01:47:47 +01:00
Marcus Huewe
3e4f6fdc9e
- added OscTextMeter() class
...
it's sole purpose is to show the progress immediately because it might take
some time until it shows up (depending on the used bufsize)
2010-02-09 21:22:32 +01:00
Marcus Huewe
9187508513
- fixed #547005 ("osc co could show download progress")
2010-02-09 20:57:10 +01:00
Marcus Huewe
452a33bce5
- oops.. removed ')'
2010-02-09 02:27:29 +01:00
Marcus Huewe
4c3df68afd
- remove redundant checks etc.
2010-02-09 00:08:21 +01:00
Marcus Huewe
8b53dbbffd
- simplify
2010-02-08 23:31:27 +01:00
Marcus Huewe
b773977410
- fixed #577792 ("osc sr: revoke-existing inquiry not accurate")
2010-02-08 20:16:03 +01:00
Marcus Huewe
2f290cdda6
- fixed #577156 ("osc: develproject redirection notice absent")
...
Note: this only works properly with api's which have commit 357d0dbd1f77967fe020c16917531bcb354245d5
2010-02-08 19:58:14 +01:00
1cb627a289
allow to skip source services
2010-02-05 10:32:27 +01:00
Ludwig Nussel
f29fc17f83
better c&p'able output of osc maintainer
2010-02-02 16:15:38 +01:00
Ludwig Nussel
e21e1e9e42
fetch meta data only if it's actually needed
2010-02-02 16:15:38 +01:00
Ludwig Nussel
f635b50e3b
don't abort osc sr -d due to wrong develproject
2010-02-02 14:59:40 +01:00
Ludwig Nussel
010b55020e
parse server diff to generate submitrequest message template
2010-02-02 14:59:40 +01:00
Ludwig Nussel
048c479a3e
remove broken -l option to osc sr
2010-02-02 14:59:40 +01:00
Marcus Huewe
89a3ee1b71
- distinguish between 'su' and other suwrappers (at least it should work now with 'su' and 'sudo')
2010-01-30 21:41:49 +01:00
Marcus Huewe
7b00934a47
- don't hardcode path to chroot binary
2010-01-30 19:22:32 +01:00
Marcus Huewe
58f4740835
- added new command "osc chroot"
...
- added new helper method parse_repoarchdescr()
2010-01-30 16:18:30 +01:00
Marcus Huewe
fe6dec5410
- also detect a kiwi file
2010-01-29 23:16:15 +01:00
Marcus Huewe
73770458a7
- cleanup + fixed "osc build --local-package..."
2010-01-29 23:13:36 +01:00
Marcus Huewe
8c50908891
- fixed 'project/package/repository/arch' support
2010-01-28 20:00:34 +01:00
Michal Vyskocil
1d44150c7f
add a buildlogurl support to osc remotebuildlog command
2010-01-28 13:20:11 +01:00
293d03536f
fix patchinfo command, not crashing anymore
...
Conflicts:
NEWS
2010-01-27 13:16:26 +01:00
Michael Schroeder
8a8780d1db
Merge branch 'master' of gitorious.org:opensuse/osc
2010-01-21 14:47:39 +01:00
Michael Schroeder
b821c2ed6d
- default to expanded for new packages in osc up, like we do in osc co
2010-01-21 14:47:04 +01:00
73b5bc65d5
fixing attribute set/create command for final 1.7 API
...
Conflicts:
NEWS
osc/core.py
2010-01-21 10:32:35 +01:00
Michael Schroeder
151b9b699d
- also freeze if 'up -e' fails, code cleanup
2010-01-20 17:55:44 +01:00
Marcus Huewe
aee78f6150
- fixed do_branch
2010-01-19 19:15:45 +01:00
39ac814169
do not crash on rdiff with 3 arguments ( #571483 )
2010-01-18 10:25:00 +01:00
Ludwig Nussel
bddcf82e5e
fix osc r in prj dir
2010-01-15 11:00:50 +01:00
Ludwig Nussel
2f46207cd0
osc ls -b: allow to specify repo and arch as arguments too
2010-01-15 10:56:42 +01:00
Ludwig Nussel
e86d6b6223
add option to prjresults to show results with packages listed vertically
2010-01-15 10:56:24 +01:00
b2ea0d3b23
* fix output of "results" in project dir
...
* do not show warning when a target project is given on "branch"
2010-01-15 10:30:16 +01:00
Marcus Huewe
28f3e3b7e2
- fixed indention
2010-01-14 20:25:14 +01:00
Marcus Huewe
c4ccdea253
- fixed indention, use list comprehension
2010-01-14 20:16:10 +01:00
e4fb64daba
"osc results" calls "prjresults" when being in project dir.
2010-01-14 15:20:00 +01:00
2b419453bb
Revert "new "osc revert" command"
...
This reverts commit b198845b2c
.
Conflicts:
osc/commandline.py
2010-01-14 14:42:26 +01:00
727c66c2cf
* support linktobranch with local dir
...
* update local checkout on linktobranch and revert
2010-01-14 12:24:48 +01:00
b198845b2c
new "osc revert" command
2010-01-14 11:58:34 +01:00
Michal Vyskocil
fe4ec4d7e7
fix of do_bugowner: opts.roles should have the __len__ method
2010-01-13 10:03:14 +01:00
Michael Schroeder
b969f87210
- add autofreezing of link (obsoletes linkrepair)
2010-01-12 17:22:47 +01:00
Ludwig Nussel
db0c0ee6ea
reimplement osc my
2010-01-12 15:11:42 +01:00
Michael Schroeder
0cb7afbfdf
- reimplement 'osc pull' so that iw works like intended, i.e. still works if the link is broken
2010-01-11 17:01:21 +01:00
2aa4700bca
add osc linktobranch command
2010-01-11 16:36:33 +01:00
Ludwig Nussel
5af4250ffc
implement three argument form for rdiff as used by copypac and linkpac
2010-01-11 14:00:24 +01:00
Marcus Huewe
5c8ee534a9
- cleanups + cosmetic changes
2010-01-09 14:25:41 +01:00
Michal Čihař
396b6299f2
Fix typos found by lintian.
2010-01-02 12:25:56 +01:00
Marcus Huewe
9560002d00
- adjusted help text
2009-12-30 21:54:57 +01:00
Marcus Huewe
77544e7b4f
- cleanups
2009-12-30 15:10:11 +01:00
Marcus Huewe
f109054898
- escape attributes
2009-12-29 20:33:16 +01:00
Marcus Huewe
d75888fbd4
- fixed do_submitrequest
2009-12-26 14:25:58 +01:00
Marcus Huewe
bcbcf6426c
- fix for 0a6ca4f6c2
(also adjusted variables)
2009-12-26 14:22:34 +01:00
Marcus Huewe
1f979150a5
- add a more helpful text (see also #558197 )
2009-12-25 18:16:35 +01:00
Marcus Huewe
0a6ca4f6c2
- useless use of StringIO()
2009-12-25 17:37:53 +01:00
Marcus Huewe
b3c8cc9062
- do_maintainer(): support multiple --role <foo> options
2009-12-25 17:31:13 +01:00
Marcus Huewe
9e892b9e58
- do_maintainer(): cleanup + renamed "--bugowner_only" to "--bugowner-only"
2009-12-25 17:19:44 +01:00
Marcus Huewe
73a2d30180
- minor changes/"cleanups"
2009-12-25 00:39:13 +01:00
Marcus Huewe
59073eaff5
- cleanup: use exceptions
2009-12-25 00:08:29 +01:00
Marcus Huewe
a715077769
- code cleanup
2009-12-23 20:51:08 +01:00
Marcus Huewe
046d4c37e1
- cleanup: removed useless objects
2009-12-21 23:47:25 +01:00
Marcus Huewe
a6a223edec
- added "--disable-publish" option to "linkpac" and "aggegratepac"
2009-12-21 14:24:33 +01:00
Pavol Rusnak
8998d8d8a4
add missing exception variable to except block
2009-12-20 20:42:54 +01:00
Marcus Huewe
0bf48f2b73
- added support to specify a default action if a submitrequest has been accepted
2009-12-19 14:44:51 +01:00
Marcus Huewe
b983f116eb
- commit: check if "_pulled" file exists before removing it
...
- fixed indention
2009-12-17 20:20:35 +01:00
Michael Schroeder
72e6edc997
- first attempt at "osc pull" and "linkcontrol"
2009-12-17 17:16:56 +01:00
Ludwig Nussel
3285fafaac
take sr apiurl from current dir also in two argument form
2009-12-15 17:42:23 +01:00
Ludwig Nussel
f78ac323a8
check apiurl aliases also for copypac -t
2009-12-15 17:42:23 +01:00
Marcus Huewe
f297c01d6e
- small cleanups
2009-12-12 15:02:58 +01:00
3949066104
add "osc triggerreason", show detailed reason of a build trigger
2009-12-09 07:53:33 +01:00
35a3a07c62
Merge branch 'master' of gitorious.org:opensuse/osc
2009-12-09 06:55:15 +01:00
0b60db740c
* Revert fetch-cpio support for now, too many complains due to broken
...
product building atm.
* add --link-source option for "osc build" to speed up product building
2009-12-09 06:53:27 +01:00
Pavol Rusnak
1dd6dee9ba
remove exec flags from commandline.py and core.py
2009-12-08 14:19:23 +01:00
Marcus Hüwe
e3e32f0d2f
- autodetect *.kiwi files too
2009-12-04 17:41:31 +01:00
Adrian Schröter
edc55d83ec
add dependson and whatdependson commands
2009-12-04 16:20:17 +01:00
Michal Čihař
457b8345d1
Remove line of asterisks
...
This does not work for man page.
2009-12-04 13:42:15 +01:00
Ludwig Nussel
1ff4978b98
implement build --release
2009-12-01 13:36:11 +00:00
Ludwig Nussel
133bd7a613
sanitize osc repos command
2009-11-30 09:57:39 +00:00
Ludwig Nussel
b75f95773f
better repourls command behavior
...
Instead of requiring the path to a package working copy either read the project from currernt dir or allow to specify project
2009-11-30 09:31:28 +00:00
Ludwig Nussel
b3ef949ed1
hide install command. just plain broken.
2009-11-30 09:31:22 +00:00
Ludwig Nussel
6fd0e98a73
more convenience for osc signkey
2009-11-26 10:56:28 +00:00
Ludwig Nussel
75bdc2e6c7
allow build in read-only directory
2009-11-26 09:52:26 +00:00
Michal Vyskocil
e57b3548c9
osc mv command
2009-11-24 16:25:48 +00:00
Ludwig Nussel
d47ebed9e0
--with and --without need to be array
2009-11-24 09:49:26 +00:00
7cc629bdad
default to exact search now (faster results and less server load).
...
osc search -s is doing the old substring search now
2009-11-23 16:13:57 +00:00
2393044585
add "osc build --root" option to allow to specify build root directory.
...
(not only for mls ;)
2009-11-23 13:53:59 +00:00
Ludwig Nussel
f1e67f1479
print valid repos if buildlog, buildhist or jobhist are called with
...
wrong arguments for convenience
2009-11-23 10:13:19 +00:00
Ludwig Nussel
989d7fa5d0
allow to specify limit=0 so jobhist works with apis that don't support limit
2009-11-23 10:13:12 +00:00
881349eaff
fix request listing with --type without given target or source
2009-11-20 16:06:05 +00:00
Ludwig Nussel
5e142d7fc9
print list of valid arguments for getbinaries
2009-11-20 14:35:57 +00:00
Thomas Schmidt
fd4cd7fa0a
fix text
2009-11-20 13:30:55 +00:00
Marcus Hüwe
d5d3605652
- reverted r9064. Verify/adjust apiurl in conf.py instead
2009-11-18 20:31:08 +00:00
Michal Vyskocil
4a0df19660
Make read of email adress from oscrc more robust
...
Fix possible KeyError when mismatch of apiurl with or without ending
slash.
2009-11-18 15:03:49 +00:00
Dirk Mueller
921b78d93c
osc maintainer: hide verbose information if verbose is
...
not used
2009-11-17 21:48:46 +00:00
f27fc0fd77
support review handling of requests (new "osc review accept/decline
...
$REQUEST_ID" command
2009-11-17 16:59:17 +00:00
Ludwig Nussel
4139db3e3d
smarter ls -b
...
- list all repos/archs if not specified
- use project or package of the current dir if none specified
2009-11-17 13:39:46 +00:00
Ludwig Nussel
8f4bbb5718
initialize apiurl always
2009-11-16 09:42:58 +00:00
2e46311ecd
show worker/id on jobhistory and make it faster by adding a default
...
limit of 20
2009-11-13 13:31:10 +00:00
bc6f77d1da
* patchinfo runtime fixes
...
* support submit requests on project level, osc is checking which
packages have changed and submits only the changed after asking back.
* add support for _patchinfo package submissions in "osc sr" on project level
2009-11-13 08:58:37 +00:00
81afb0fa4d
basic patchinfo support, calling api for generate file and to edit it
2009-11-10 09:56:34 +00:00
Michal Vyskocil
cdb8fabcbb
osc my - show maintained packages by default
2009-11-10 09:36:32 +00:00
Jürgen Weigert
e09d83c772
all *.py: TABS to spaces; osc build: counting packages during cache filling
2009-11-10 00:56:52 +00:00
Jan-Simon Möller
3226fb0f9b
add PRJ PKG also as args of buildinfo and buildconfig
2009-11-06 19:52:28 +00:00
Jan-Simon Möller
7769144d55
osc jobhistory accepts now also PRJ [PKG] REPO ARCH - enables query if not in wd.
2009-11-06 18:47:54 +00:00
fbf63aae84
change "osc maintained" syntax to "osc sm" or "osc search --maintained"
...
as decided in Build Team Meeting.
2009-11-06 16:08:20 +00:00
Dirk Mueller
2d198006b8
implement -v for osc ls -b
2009-11-04 14:31:20 +00:00
Michal Marek
df8d70b5ad
linkpac: default to cicount=copy if the link is in the same project, to avoid
...
one gotcha when building kernels
2009-11-02 21:02:58 +00:00
c0760b0938
add "osc maintained" shortcut command
...
=> implement me: show also bugowner and maintainer
2009-11-02 09:28:27 +00:00
33dcce48ce
implement "mbranch" call as documented on
...
http://en.opensuse.org/Build_Service/Concepts/Maintenance
2009-11-02 08:32:15 +00:00
09a01158de
support attribute default requests and including project attributes in
...
one request.
2009-10-30 10:18:44 +00:00
b9b8f36925
basic meta attribute features, to show, set, create or delete attributes
...
and their values
2009-10-30 09:40:46 +00:00
116f75fec8
* allow to limit the osc search results by the existens of attributes
2009-10-22 10:10:15 +00:00
Jürgen Weigert
bb6e27db24
- added 'osc bugowner' as a more intelligent version of 'osc maintainer -B'
...
- added option '-B' to osc maintainer, prints bugowner OR maintainer.
- added 'osc req help' as convenience alias to 'osc help req'.
- 'osc in' to be done. Its usage just prints a suggested zypper command line.
- Incompatible change: osc se now prints Project Package, instead of
Package Project for easier copy&paste.
- give better hint how to use osc vc without network connectivity.
- added printing of cache statistices to osc build
- implemented 'osc ls .' to take proj/pack name from current directory.
* Incompatible change: 'osc ls' now defaults to 'osc ls .',
* Use 'osc ls /' if you really want to list all projects.
* This is meant as a proof of concept. I intend to generalize this usage of '.'
for all osc commands. Feedback welcome.
2009-10-22 09:43:58 +00:00
Pavol Rusnak
661d927d38
code cleanup
2009-10-20 14:30:15 +00:00
9266647b0c
- support 100% offline build when using "osc build --noinit ..."
...
-> buildinfo gets stored in local directory as .buildinfo.xml
2009-10-20 08:43:52 +00:00
b8a915b8a2
Revert half introduced incompatible changes
2009-10-16 19:56:33 +00:00
5a1183a3d3
revert incompatible one-off-super-special-osc-req command, fixes error message on each osc call. declare this version as 0.123 RC 1
2009-10-16 15:55:29 +00:00
9a674cbda7
another try
2009-10-16 14:33:55 +00:00
c782e8d643
improve signkey help message
2009-10-16 14:21:05 +00:00
82add8761a
fix typo
2009-10-16 14:16:25 +00:00
d47bbd8819
add project key management command (osc signkey)
2009-10-16 14:12:55 +00:00
bd38438416
fix checkout of a package, which contains uploaded, but not commited
...
files. We use the latest committed version in that case.
2009-10-16 08:26:01 +00:00
Pavol Rusnak
5ef036a578
allow filtering by repo/arch in prjresults
2009-10-15 14:24:12 +00:00
Jürgen Weigert
0bcfa2a938
+- added 'osc req help' as convenience alias to 'osc help req'.
...
+- 'osc in' to be done. Its usage just prints a suggested zypper command
line.
+- Incompatible change: osc se now prints Project Package, instead of
Package Project
+ for easier copy&paste.
+
2009-10-08 14:40:06 +00:00
Jürgen Weigert
652e6b87f4
-
2009-10-08 14:21:43 +00:00
Ludwig Nussel
f9c2aaaf27
remove special case for 'se' to perform an exact match by default
...
zypper for example doesn't do that either.
2009-10-08 12:44:25 +00:00
Jürgen Weigert
6575669111
added expand_proj_pack() for suggested '.' handling.
2009-09-28 19:50:57 +00:00
Marcus Hüwe
4e30d9f946
- fixed get_request_list() call
2009-09-24 14:14:11 +00:00
Marcus Hüwe
3cfe9db980
- show pending requests after branching a package
2009-09-22 23:31:10 +00:00
Marcus Hüwe
0c5a9528e3
- check for pending requests after executing an action (e.g. checkout, update, commit). This check is disabled by default. (requested by darix)
2009-09-18 01:10:41 +00:00
Marcus Hüwe
6ca6a10955
- added support to checkout a request's source package (osc request co ID)
2009-09-16 21:39:45 +00:00
2d3be21964
adapt source update flags for new <option> block
2009-09-10 08:48:44 +00:00
Marcus Hüwe
cb16432cd9
- get rid of rpm-python:
...
* so far it was only used for querying rpms which can be done with the rpmquery module
- core.py:
* removed data_from_rpm() and tag_to_rpmpy() methods
- util/rpmquery.py:
* added staticmethod "query()"
- commandline.py, fetch.py:
* use rpmquery module instead of rpm-python/data_from_rpm()
2009-09-09 15:28:21 +00:00
Michal Marek
e312cc1916
Unbreak 'osc api'
...
Commit 7947 doesn't mention do_api at all in it's log message, yet it breaks
it.
2009-09-08 13:24:54 +00:00
ab73a24162
ups ...
2009-09-08 11:16:21 +00:00
48e96a96fb
+ - make buildhist command usable without checked out package
...
+ - rename old "platform/s" names to "repository/ies" (internal cleanup only)
2009-09-08 08:14:27 +00:00
Jürgen Weigert
7ea7ecee3d
-
2009-09-07 18:49:01 +00:00
e040ae85f5
- support modification flages on creation of submit request
...
(for auto update or clean up packages or to avoid it, when submit request got accepted)
- show request ids from package source logs
2009-09-05 13:46:55 +00:00
6648377870
* add python-keyring support
...
* We may remove direct gnome keyring support later (there are currently
reports of users who can't access obs anymore when not using gnome)
* do not write passwords to .oscrc if keyring is available and used
2009-09-04 17:48:53 +00:00
d8160a957f
and rever again the osc req shortcut.
...
Juergen, this conflicts with the old api call and you get a error
message on each osc call.
2009-09-04 16:02:59 +00:00
Marcus Hüwe
08cfb45142
- do_branch: interpolate 'getpac_default_project' config value in the help text
2009-09-03 21:32:36 +00:00
Jürgen Weigert
56d4f12dbd
- make osc getpac really get the package (instead of branch only)!
...
- expanded several tabs to spaces.
- added default project to new getpac and bco subcommand. .oscrc:getpac_default_project = OpenSUSE:Factory
(not added to branch subcommand, to not interfere with its syntax.)
2009-09-03 18:08:43 +00:00
Jürgen Weigert
6babfdf04d
- added missing code for 'osc sr -l [ID]'
...
- allow osc req as shortcut for osc request.
- allow osc cat with one parameter, if it is a url.
- core.py:makeurl() now prints the url for educational purposes if osc -v -v
2009-09-03 17:28:27 +00:00
c2cee79679
support source services better:
...
* offer updating version from server
* executing them locally on update or build
2009-09-03 14:56:48 +00:00
5f9127cd6c
fix "my request" call (haven't I did this before ?)
2009-09-03 11:25:12 +00:00
fec32ed9e4
rejected is no valid request state. Even though it got used in the past
...
:/ (but this will fail in future)
2009-09-01 15:44:57 +00:00
9e67dae8b7
bring back sr --diff option
2009-08-28 07:33:16 +00:00
06dc5b9aae
avoid warning about missing diff option during creating sr
2009-08-28 06:46:20 +00:00
80de17208d
revert changes which introduce inconsitencies or will conflict with
...
later developments.
2009-08-27 13:32:55 +00:00
Michal Vyskocil
816a982acf
added missing delPerson function
...
do_maintainer relly on delPerson, which did not exists. It is
taken from old delMaintainer function with role handling.
Fixed also some issues in do_maintainer role handling
2009-08-26 14:22:54 +00:00
Marcus Hüwe
e3c9e30ca0
- do_request list:
...
* --mine + --user and --all + --state options are mutually exclusive
* fixed "--all" and "--state all" options
2009-08-21 21:31:45 +00:00
Marcus Hüwe
b0000b2834
- more or less only some minor cosmetic changes
2009-08-21 19:39:12 +00:00
Marcus Hüwe
1a5bb12218
- added support for config variables in a help text
2009-08-21 14:55:26 +00:00
Marcus Hüwe
f1c8847879
- conf: initialize config with the default values. This fixes the manpage generation problem
2009-08-21 12:03:09 +00:00
Jürgen Weigert
403576b952
- hack for _help_preprocess_cmd_option_list to survive setup.py build
2009-08-21 11:25:07 +00:00
Jürgen Weigert
f2a738d4b6
Thanks Marcus, for looking into my FIXME's -- I could have never done
...
that preprocess helper for --days myself.
0.121.jw03
- fixed osc req list -U to not look into the local dir
- added osc my ... pkg/prj/req shorthand commands
- add 'osc se' alias for 'osc search -e'
- add -b -m -M to 'osc search'
2009-08-21 01:26:37 +00:00
Marcus Hüwe
5639b2b9a7
- added support to use config values in options' help text
...
- do_request: minor change in the --days option handling
2009-08-21 00:42:51 +00:00
Jürgen Weigert
83b1b5ca59
All in one go.
...
0.121.jw02
- made rresults an alias for results. python decorators are a strange concept...
- asserting that ~/.oscrc remains mode 0600
- no more plain text passwords in ~/.oscrc, we store now as bz2+base64
- added verbosity control -v -q. To be used in guess_proj_pack()
- added 'll' and 'ls -l' as shorthand to 'list -v'
- started to change to explicit dual license GPLv2 or GPLv3 to conform to Novell policy.
- added revision parameter to show_upstream_srcmd5(), so that it can be used in do_cat later.
- allowed both integer and srcmd5 revisions in meta_get_filelist()
- added 'lL', 'LL': allowed -e and -v together in do_list(). Was an internal error before.
- added cat -e, to cat a file through a link.
'cat -e -r 3' expands through the third revision of the _link.
- added subcmd bco as alias for branch -c
- added default project to branch subcommand. .oscrc:branch_project = OpenSUSE:Factory
- added primitive experimental support for .oscrc:checkout_no_colon = 1
- suggest using svn when .svn found.
- alias submitpac submitrequest
- osc bco now continues to checkout after branch target exists error.
- added .oscrc:plaintext_passwd=1 for backwards compatibility
- moved core.py:exclude_stuff to .oscrc:exclude_glob and expand it to catch *.orig etc.
- allowed req as alias for request.
- bugfix get_request_list: use 'or' with multiple states, not 'and'.
- added osc req list -s all; a shorthand for enumerating all states
- osc req list no longer confuses creator with approver.
- osc req list -D nnn limit to requests nnn days old.
- osc req list now also shows requests from the the given package, not only to.
- improved help texts with repairlink to point to osc resolved.
- improved passx code when creating oscrc.
- osc sr -l is now a shortcut for 'osc req list -M -a -t submit -D 0'
2009-08-20 19:28:05 +00:00
2a180fa346
new packages gets checked out expanded when using "osc up -e" in project
...
directory now.
2009-08-19 13:07:58 +00:00
Jan-Simon Möller
d2c9b0707d
Add -a/-s all option to osc rq list. It preselects all states for the query.
2009-08-19 13:00:22 +00:00
Ludwig Nussel
1e8d490ae2
open editor to enter message for submit and other requests
2009-08-19 11:28:16 +00:00
Ludwig Nussel
7e3cbabd0d
prompt for message also when comitting entire projects
2009-08-19 11:28:10 +00:00
Jan-Simon Möller
853c2c5dcb
Add support for --overlay and --rsync-{src,dest} to build and osc.
...
--overlay OVERLAY
Copy overlay filesystem to buildroot after installing
all RPMs. This must be a valid directory.
--rsync-src RSYNCSRC
Copy overlay folder (RSYNCSRC) to a folder (RSYNCDEST)
inside the buildroot using rsync.
It will "%define RSYNCDONE 1" for handling %setup in your
specfile. E.g.:
%prep
%if 0%{?RSYNCDONE}
%setup -n aaa_base -T -D -b 5 -b 7
%else
%setup -n aaa_base -b 5 -b 7
%endif
--rsync-dest RSYNCDEST
Todo: tell rpmbuild not to delete the folders.
2009-08-18 21:28:33 +00:00
Marcus Hüwe
4e32d4dc41
- moved options check to the beginning
2009-08-11 23:01:03 +00:00
f01be2f625
* keep _service: files local only.
2009-08-07 12:18:15 +00:00
b25b248a2e
do not crash, if nothing is specified. ( #526401 )
2009-08-07 09:25:34 +00:00
Michal Vyskocil
cfc9c2a1b2
Fixed help of do_commit, added info how disable checks
2009-08-05 05:54:12 +00:00
Marcus Hüwe
ddd9e0206d
- added config option to disable the filelist check before commit permanently
2009-08-04 14:12:45 +00:00
Michal Vyskocil
724f577b41
More options in commit filelist change
...
osc commit check for '?' files can be supressed by -f/--force option
It also have more options. File can be easily added, removed or the
whole filelist should be opened in editor and edited (this is very close
to git rebase --interactive behavior).
2009-08-03 13:03:24 +00:00
Marcus Hüwe
365be249c3
- slightly modified version of David Greaves' <david@dgreaves.com> patch to add a --map-repo option to aggregatepac
2009-07-31 14:31:20 +00:00
Michal Vyskocil
2d1126b847
osc commit asks if some file has a '?' status
2009-07-31 11:32:34 +00:00
Dr. Peter Poeml
2900aecea4
osc rdiff: try to make the help text a little clearer
2009-07-27 20:03:01 +00:00
Marcus Hüwe
5d12cff640
- request list: project is optional too (if no project/package is specified list all)
2009-07-24 19:15:51 +00:00
21bd79bc56
fix change devel requests help
2009-07-23 08:01:31 +00:00
Marcus Hüwe
d2dee3c525
- it's 'osc' not 'svn';)
2009-07-15 21:16:34 +00:00
Marcus Hüwe
17a8ae894a
- changed delete logic: only remove the localfile and keep the store file. The storefile is kept unless the wc is committed - this is useful for something like "osc revert".
...
- added delete_file() method to the Package class which takes care about the "file deletion logic"
2009-07-15 21:10:38 +00:00
Marcus Hüwe
964d921d39
- fixed do_copypac()
...
- copy_pac: when doing a client side copy don't do a commit for each file
2009-07-15 18:53:47 +00:00
Ludwig Nussel
8fcd6e3371
add -d option to sr to only show a diff
...
Much more convenient than having to assemble the rdiff command line
manually.
2009-07-13 09:36:19 +00:00
Michal Vyskocil
193c59c6dc
osc wipebinaries: don't force --all parameter, if -r/--repo or -a/--arch is used
2009-07-07 14:31:59 +00:00
Michal Vyskocil
02434152f1
new osc rremove command
2009-07-07 14:30:15 +00:00
Stephan Binner
257ae15d20
improve osc request help
2009-07-07 14:15:39 +00:00
16d56fb2c4
do only ask to revoke sr if existing one contains a 'submit' type
2009-06-23 12:02:01 +00:00
Michal Cihar
804979d671
Same description for arguments PLATFORM and ARCH in all places.
2009-06-23 10:06:31 +00:00
87067cd0aa
add --role option to maintainer command
2009-06-19 13:57:27 +00:00
Stephan Binner
c76ac4dd5e
fix request help
2009-06-19 13:10:33 +00:00
7ef5e04cc9
* "osc maintainer" is following to the development project / package now
...
* "osc maintainer" list maintainer and bugowner roles now
* rename addDevelProject to setDevelProject since the devel element is
only allowed once
2009-06-18 16:20:49 +00:00
d017b16426
* add "osc request list -t <type>" to list only submit, delete or
...
develchange requests
* fix support of listing requests with multiple actions
2009-06-18 13:49:23 +00:00
626aa36925
* bump version to 0.119.90 to show that this is a pre version
...
* support setlinkrev for entire projects (request from Moblin team)
* support setlinkrev -u for removing rev elements
2009-06-18 09:18:17 +00:00
Marcus Hüwe
8f2a3b7580
- renamed OpenSUSE to openSUSE (I think that's the correct spelling atm)
2009-06-17 18:19:45 +00:00
Michal Cihar
a574dbb3aa
Add proper escaping of - in man page.
2009-06-17 09:28:10 +00:00
Michal Cihar
2af8cbbf7e
Missing preposition.
2009-06-16 13:31:11 +00:00
4c60d1b285
rename "rebuildpac" to "rebuild", but keep "rebuildpac" as alias.
...
This command works also for whole projects and we get rid of another
place of pac/pkg statements.
2009-06-15 15:38:39 +00:00
60ecca1dc1
new osc linkpac -f to allow to override existing _link files, patch by
...
Michael Meeks
2009-06-15 15:19:16 +00:00
Michal Vyskocil
b611ddb00b
do not produce traceback if list of platforms is empy
2009-06-11 11:38:06 +00:00
Michal Vyskocil
d85d38f613
smarter default platform for osc build
2009-06-11 11:32:58 +00:00
Dr. Peter Poeml
8aadd6e400
osc search: shorten the if branch by eliminating the late else. No functional
...
change should result from this.
2009-06-09 17:07:02 +00:00
Dr. Peter Poeml
51726bb28b
osc search: sort search results.
2009-06-09 17:04:31 +00:00
Dr. Peter Poeml
4c73a41e7b
osc update:
...
- Sort the list of packages before updating. This makes it easier, when
updating a project with many packages, to follow progress.
2009-06-09 09:34:25 +00:00
Marcus Hüwe
7e76a8c269
- do_submitrequest: only support create otherwise if we call e.g. "osc sr list <project> a new submitrequest will be created (instead of listing the reqs for <project>)
2009-06-05 21:45:29 +00:00
9ef41fde95
fix usage of correct api when calling "osc results" without parameters
2009-06-05 06:13:08 +00:00
dccc2d41cb
add more warnings, pointing user to new syntax
2009-06-05 05:46:20 +00:00
5de58e99e2
disable "osc req" for now to point people to the change
2009-06-04 15:20:25 +00:00
b556208cd4
rename "req" command to "api".
...
req clashes with request command and this command is not intended for
usual user usage.
2009-06-04 14:14:01 +00:00
9050882b78
sync help with default function name
2009-06-03 07:43:37 +00:00
dc81d5f278
new request syntax as proposed on ml.
...
will roll a beta version from this later today for more feedback.
2009-06-02 14:57:42 +00:00
46d726133c
import new request handling from branch:
...
- New generic "request" command:
- new "delete" request
- new "change_devel" request
- Multiple actions in one request is not yet supported by osc
2009-06-02 13:14:46 +00:00
Michal Vyskocil
0158d5e377
call buildvc with all command line arguments
2009-06-01 12:20:53 +00:00
Michal Vyskocil
ee9ae8dcb1
do not pass '' with commit message
2009-06-01 12:16:17 +00:00
Pavol Rusnak
53eb08ffa3
don't wipe all binaries by default, --all is needed now
2009-05-31 11:00:03 +00:00
Michal Cihar
51228e2e22
Fix few typos in help texts.
2009-05-27 12:09:50 +00:00
Pavol Rusnak
81b8de831c
unify log/rlog , prjresults/rprjresults, results/rresults (r-versions are obsoleted now)
2009-05-25 11:33:04 +00:00
Pavol Rusnak
17cec67b98
take project and package from .osc in rlog and rresults
2009-05-25 10:41:16 +00:00
Pavol Rusnak
776a069df9
add binary flag to open where needed
2009-05-22 15:00:31 +00:00
Michal Vyskocil
5f19030580
rbuildlog alias for remotebuildlog command
2009-05-21 12:05:39 +00:00
Michal Vyskocil
51f0ef2ae0
fixed IndexError in commandline.py:996 when linked to project without 'branches:' in name
2009-05-21 09:13:34 +00:00
Pavol Rusnak
7406d0ed34
added diff -c option (show change of revision X = diff -r X-1:X)
2009-05-18 14:50:43 +00:00
Marcus Hüwe
eeba81ad26
- fix for older python versions
2009-05-17 13:07:55 +00:00
Marcus Hüwe
b5b04124c4
- LinkExpandError inherits from PackageError (display affected project and package in error message)
2009-05-15 19:08:14 +00:00
Marcus Hüwe
815ca58dc8
- cosmetic: save one level of indention
2009-05-15 15:32:15 +00:00
Dominique Leuenberger
f97f287ce7
Extend submitreq list with new optional parameter -M. When given, it will limit the list to the user's own requests.
2009-05-15 12:41:27 +00:00
Pavol Rusnak
121b20c63c
more fixes for Windows port
2009-05-15 11:40:50 +00:00
Michal Vyskocil
b6246d7695
--xml output for results and rresults command, results_meta is obsoleted
2009-05-15 09:24:53 +00:00
Michal Vyskocil
4676bd6ddf
added default=[] for -r and -a options in all results commands
2009-05-15 08:48:32 +00:00
Michal Cihar
e12100fc48
osc search can now output CSV
2009-05-15 08:33:25 +00:00
Michal Cihar
0d3a98ce5b
"involved projects" is not really good description of this
2009-05-15 08:07:03 +00:00
Michal Vyskocil
011426d885
-r|--repo and -a|--arch options for results, rresults and results_meta commands
2009-05-15 07:16:26 +00:00
0648a8c555
- new option for copypac
...
* -r to specify source revision
* -m to specify a comment (and send default comment if not specified)
mmeeks, jpr: this is for you :)
2009-05-14 11:50:53 +00:00
2c42287a98
Add support to get build logs starting from a given offset
...
(from Ming Xi Wu)
2009-05-14 11:09:26 +00:00
Michal Cihar
0f3c3d8eaf
new jobhistory/buildhistory output format (CSV)
2009-05-13 09:04:27 +00:00
Michal Cihar
63590a80be
new log/rlog output formats (CSV and XML)
2009-05-13 08:53:32 +00:00
Michal Cihar
92ff8996d4
osc linkpac can not specify cicount attribute
2009-05-13 07:59:01 +00:00
Pavol Rusnak
7c27fac55e
add 'ar' alias for addremove command
2009-05-11 13:21:33 +00:00
Michal Cihar
7074362e90
osc can now store credentials in Gnome keyring if it is available (bnc#460540)
2009-05-11 07:46:01 +00:00
Marcus Hüwe
72532fb016
- rresults: allow arguments which a separated by a "/" (e.g. prj/pkg)
2009-05-10 20:29:34 +00:00
Marcus Hüwe
287d8c2fbd
- move check to the correct place (otherwise args[0] might lead to an IndexError exception)
2009-05-07 19:41:02 +00:00
Marcus Hüwe
2baad18f1f
- use list comprehensions instead of map/lambda (this is more pythonic:) )
2009-05-07 19:13:50 +00:00
Marcus Hüwe
dffa7317eb
- small fixes (target_package and target_prj were referenced but in some cases there was no assignment before)
2009-05-07 18:43:04 +00:00
Michal Cihar
e5563bcaa4
Move osc specific bits to commandline module.
2009-05-06 13:20:15 +00:00
Dr. Peter Poeml
09b50649ea
fix typo introduced in r7243
2009-05-06 10:08:08 +00:00
Michal Cihar
85293d8770
plugins now should be placed in /usr/lib/osc to match FHS (the /var path is still supported though)
2009-05-05 14:21:56 +00:00
Michal Cihar
a02e40f273
Print help in more standard form so that help2man can parse it (bnc#471888).
2009-05-05 14:13:22 +00:00
Michal Cihar
aedeea317c
Drop shebang line from modules (bnc#500971).
...
(Some did have it and some did not, this way it is consistent and they
are anyway not supposed to be executed directly.)
2009-05-05 14:11:25 +00:00
3df88ab765
Consolidating delete commands:
...
* obsolete deletepac and deleteprj to delete and rdelete commands.
- enable package tracking by default
* add support to hide commands in help list (so we can show propper
help when people still try to use it).
seife: this is for you, drop your own scripts emulating it :)
2009-05-04 19:07:05 +00:00
Michal Vyskocil
ad88054cf8
osc submitreq create DESTPRJ [DESTPKG]
2009-05-04 12:53:03 +00:00
51f941886c
Allow pulling conflicting changes from another project via "osc
...
repairlink"
2009-05-04 09:13:35 +00:00
Michael Schröder
38446b0749
- clean up files if diff3 did the job
...
- first try baserev before querying lastworking
2009-04-27 10:09:38 +00:00
Brandon Philips
4a924553b2
Cleanup usage information on osc co PACKAGE
...
The usage information on osc co PACKAGE was a bit confusing and one of
the descriptions was inaccurate. Remove the inaccurate description and
improve the language on the clearer one.
2009-04-23 23:59:40 +00:00
Brandon Philips
415143d548
Restore osc co -c feature after commit r7103
...
Commit r7103 broke the osc co -c feature to checkout a package to the
current directory. Restore it.
2009-04-23 23:57:59 +00:00
Michael Schröder
54300936f0
- don't diff binary files
2009-04-23 09:03:59 +00:00
630084b582
* harmonize parameters of repairlink with other commands
2009-04-23 08:58:21 +00:00
Marcus Hüwe
f15d1dd57e
- get the correct apiurl user
2009-04-22 17:38:14 +00:00
Michal Vyskocil
a49d15edbd
just edit option for buildvc and osc vc commands, used /usr/lib/build/vc in osc vc
2009-04-22 14:44:17 +00:00
Michael Schröder
90cb8163b6
- fix test for modified files
...
- print message after the repairlink commit
- destroy upload revision if commit fails
- use "latest" when revision is not specified
2009-04-22 13:14:17 +00:00
7c423392e1
yet another place where wrong apiurl is used for getbinaries
2009-04-22 12:42:52 +00:00
9dfaf611f3
* revert rev=latest change, let mls do it right in all places.
...
* add hint to use "osc repairlink" on failed operations with links
* use correct target project and package name on repairlink
2009-04-22 12:32:29 +00:00
Michal Vyskocil
17cd24bb57
list view for osc submitreq show
2009-04-22 11:02:32 +00:00
Michael Schröder
f8f0ae8a55
- expand tabs
...
- use some core functions
- give user a hint what to do
- add NEWS
2009-04-22 09:06:13 +00:00
Michael Schröder
9dbfeeb2ef
- add 'osc repairlink' command
...
- pass revision correctly so that 'osc co' can checkout
an old revision again
2009-04-21 16:52:26 +00:00
b8642c4ee0
make getbinaries working in checked out directories
2009-04-21 09:46:32 +00:00
Michal Vyskocil
0bf3540cb2
osc vc command - uses a /usr/bin/buildvc from build.rpm
2009-04-20 13:40:33 +00:00
b7ea9b64c0
revert a senseless part of last commit
2009-04-17 12:04:45 +00:00
89e2e73dca
- allow to specify target project and package on osc branch (requires
...
server version 1.6)
- add option to automatic checkout a branched package
2009-04-17 12:02:02 +00:00
65f540161f
just make it more robust, use the same variable for local dir.
2009-04-17 08:48:22 +00:00
20f8234d8c
support checkout of single packages via "osc co PACKAGE" when local dir
...
is a project dir.
2009-04-17 08:39:04 +00:00
Brandon Philips
6f99610590
osc: add -c flag to checkout PACKAGE dir in cwd instead of PROJECT/PACKAGE
...
A simple solution to the colons in project names messing up LD_LIBRARY_PATH:
http://lists.opensuse.org/archive/opensuse-buildservice/2008-12/msg00166.html
Example use:
$ osc co -c openSUSE:Factory osc
A $PWD/osc/debian.changelog
A $PWD/osc/debian.tar.gz
A $PWD/osc/osc-0.113.tar.gz
A $PWD/osc/osc.changes
A $PWD/osc/osc.dsc
A $PWD/osc/osc.spec
A $PWD/osc/ready
Versus without -c
$ osc co openSUSE:Factory osc
A $PWD/openSUSE:Factory/osc/debian.changelog
A $PWD/openSUSE:Factory/osc/debian.tar.gz
A $PWD/openSUSE:Factory/osc/osc-0.113.tar.gz
A $PWD/openSUSE:Factory/osc/osc.changes
A $PWD/openSUSE:Factory/osc/osc.dsc
A $PWD/openSUSE:Factory/osc/osc.spec
A $PWD/openSUSE:Factory/osc/ready
Signed-off-by: Brandon Philips <bphilips@suse.de>
2009-04-16 17:41:47 +00:00
Michal Vyskocil
41eb9614f0
commit message template
...
New functions:
osc.core.get_commit_message_template()
- check the differences in .changes
- extract them and add to the commit message
osc.core.dgst_from_string():
- same as dgst, but work with string argument
Modified functions:
osc.core.edit_message():
- new optional argument template
osc.commandline.do_commit():
- use get_commit_message_template to collect the changes and call the
edit_message with template argument
osc.core.edit_message():
- used dgst_from_string for header_orig value, so commit message could be
used as is with template. Used a mtime check for canceling support.
TODO: maybe is dgst_from_string unecessary
2009-04-16 13:48:37 +00:00
e6815fc177
* use correct api url in checked out packages on setlinkrev command.
...
* make error message better matching reality
2009-04-16 08:13:55 +00:00
Marcus Hüwe
16f99519ed
- oops r7028 broke "osc search"
2009-04-15 17:30:13 +00:00
Marcus Hüwe
8282e232d8
- added streamfile() method
...
- print_buildlog: use streamfile() to retrieve the buildlog
- do_cat: use streamfile() to retrieve a file - there's no need to have a tempfile or to read the entire file into memory anymore
2009-04-09 15:52:59 +00:00
Marcus Hüwe
92759ad082
- SubmitReq class: replaced src_md5 attribute with src_rev
...
- use plain revision numbers instead srcmd5's when creating a submitrequest
2009-04-09 13:02:19 +00:00
Marcus Hüwe
7cad7f99c6
- small fixes for the last commit (r7055) (I hope it doesn't break anything..)
2009-04-09 11:44:32 +00:00
d547203c12
- support listings of older revisions with "osc ls -R"
...
- add --current parameter for linkpac to use current revision of source
package fixed.
- add osc setlinkrev to add or update revision number in links easily
- fix streaming of binary files via "cat" (#493325 )
2009-04-09 08:21:12 +00:00
c298692e68
add linkpac --current paramter to create links with revision number
...
included.
2009-04-08 11:48:34 +00:00
Marcus Hüwe
17327a3db9
--exact is more appropriate than --enable-exact (requested by darix)
2009-04-07 18:45:42 +00:00
Marcus Hüwe
68f5d72061
- fix for #492369 ("no warning on failed osc expansion")
2009-04-06 20:08:14 +00:00
Marcus Hüwe
d6c9693a47
--apiurl can be an alias
2009-03-31 13:29:16 +00:00
Marcus Hüwe
9ff9a1f151
- fixed #487400 : --disable-debuginfo will create no debuginfo packages and --debuginfo will create them. Both override the debuginfo element from the buildinfo
2009-03-31 11:45:30 +00:00
Marcus Hüwe
b910253bed
- added --expand option to 'osc ls'
2009-03-30 22:28:26 +00:00
Marcus Hüwe
4ed272b2a2
- fixed #490023 : add --expand option to copypac
2009-03-30 22:17:18 +00:00
Marcus Hüwe
5e16d98edd
- fixed #472831 ("missing apisrv in branch command")
2009-03-23 19:08:06 +00:00
Marcus Hüwe
7cd12cb501
- fixed #462389 ("Ask for commit before creating a new submitreq")
2009-03-22 16:04:19 +00:00
Marcus Hüwe
e5ff09152d
- be a bit more verbose and tell the user about the package tracking feature
2009-03-16 21:29:42 +00:00
Marcus Hüwe
ce8027fc14
- partly fix #478516 : copypac: added --keep-develproject option
2009-03-11 15:23:23 +00:00
Dr. Peter Poeml
be4f2b031f
Putting names at the top of files is is not recommended. Collective wisdom for
...
fostering open source contributions says that it can discourage contribution by
conveying a false sense of "code ownership". Marking territory is negatively
affecting collaboration. See http://www.youtube.com/watch?v=ZSFDm3UYkeE
2009-03-02 14:03:06 +00:00
Marcus Hüwe
caae2bc8a1
- cleaned up the conf module (I hope I didn't break anything):
...
* basically get rid of the scheme and apisrv mess - instead directly use the apiurl (== <protocol>://<host>) for everything
* some other minor cleanups here and there
* everyone who has a scheme or apisrv entry in his ~/.oscrc will get a deprecation warning but it's still working (at some point in the future we might remove these code paths)
* when writing a new ~/.oscrc store the apiurl in the conffile [fixes #478054 ]
- while being at it:
* fixed #478054 ("osc asks for build.o.o credential even if -A<somelocalapi> is always used")
* fixed #478052 ("osc backtrace on password entry (first startup)")
2009-02-23 23:29:32 +00:00
b43d67093b
fix error messages, kiwi files are also allowed as build description.
2009-02-23 14:59:10 +00:00
3cc1a12e60
add -l lastbuild option also to local results command
2009-02-23 12:25:56 +00:00
7a9970473f
import a fix from mls for getting product builds working.
...
(Adapted to my changes from an hour ago)
2009-02-20 15:01:16 +00:00
Dirk Mueller
c526f4ee9a
add osc jobhistory
2009-02-20 11:04:45 +00:00
85d53187cf
add option to request former build status due to popular request.
...
(Requires an OBS > 1.5)
2009-02-18 09:53:38 +00:00
Marcus Hüwe
0dc31b96b7
- fixed #470948 (osc build: be a bit more verbose if the linked package isn't expanded)
2009-02-11 12:53:05 +00:00
Marcus Hüwe
2e4570ebab
- do_branch: added --revision option
2009-02-10 15:49:34 +00:00
Marcus Hüwe
7c93e55eb9
- fixed osc diff
2009-02-04 20:51:25 +00:00
Marcus Hüwe
4cef04fce4
getbinaries: doc fixes
2009-02-03 19:45:54 +00:00
Marcus Hüwe
d2f7dd1de1
- fixed #458083 (importsrcpkg: set the url in the package meta)
2009-01-21 21:55:53 +00:00
Dr. Peter Poeml
f0c19c23be
spelling fix, kindly reported by William Stephenson
2009-01-19 10:54:26 +00:00
Marcus Hüwe
d03dfd42a1
--typo
2009-01-16 14:45:27 +00:00
Marcus Hüwe
63864a5ff2
- renamed method 'pretty_diff' to 'server_diff': it can return an unified or a pretty diff (default: pretty diff)
...
- osc diff -rX:Y: the default is to return an unified diff (to get a pretty diff use the --pretty option)
- osc rdiff: the default is to return a pretty diff (to get an unified diff use the --unified option)
- osc sr show --diff: the default is to return a pretty diff (to get an unified diff use the --unified option)
2009-01-16 14:43:45 +00:00
Ludwig Nussel
edf555d9c3
osc getbinaries: optionally also download source rpms
2009-01-16 10:31:38 +00:00
Marcus Hüwe
cc99647933
- wipebinaries: added --expansion option
2009-01-10 22:55:25 +00:00
Marcus Hüwe
355b6935db
- osc diff: if 2 revisions are specified do a pretty_diff (TODO: BSSrcdiff.pm should generate unified diffs)
2009-01-09 17:09:29 +00:00
Marcus Hüwe
ad11a87f92
- fix #459288 (mkpac: add info how to enable the package tracking feature)
2008-12-17 22:45:58 +00:00
Dr. Peter Poeml
0a0cb27142
important bugfix for osc deletepac: prevent recursive deletion of a whole project, when a package name is given with a trailing slash
2008-12-12 10:02:41 +00:00
Ludwig Nussel
e33b48f5b0
add support for more build options
...
--icecream
--ccache
--with
--without
2008-12-11 11:36:07 +00:00
Marcus Hüwe
c1b99b041f
- fixed importsrcpkg doc
...
- osc build: if --keep-pkgs is used also save the src.rpm
2008-11-29 13:32:25 +00:00
Marcus Hüwe
b6b4550ae7
osc ls: be able to list a single file (osc ls <project> <package> <file>) (requested by darix)
2008-11-20 12:56:16 +00:00
Dr. Peter Poeml
2bea1ad2df
fix osc's ignorance of the revision option (-r) for expanded links
...
https://bugzilla.novell.com/show_bug.cgi?id=429650
2008-11-19 12:13:18 +00:00
Marcus Hüwe
ccda32cca2
do_branch: allow slash notation for the project/package arguments (as requested by darix)
2008-10-16 12:34:41 +00:00
Dr. Peter Poeml
df8ecce631
when checking out a project, and a linkerror occurs for one of the packages,
...
do a checkout in unexpanded form and continue checking out the rest of the
project [bnc#428303]
2008-10-02 15:46:52 +00:00
Marcus Hüwe
6a44bef9b5
deletepac: allow arguments like "<project>/<package>" (which are separated by a "/")
2008-10-01 15:01:32 +00:00
Dr. Peter Poeml
889ef86af5
- osc getbinaries: new command to download binaries directly from the api server
...
- core.get_binarylist(): add "verbose" switch that returns instances of class
File, instead of filenames
- improve core.get_binary_file():
* clean up tempfiles,
* set mtime,
* set file mask
Function signature is changed, because I'm not aware of any user than the example
script I once published on http://en.opensuse.org/Build_Service/osc_plugins
2008-09-30 14:54:08 +00:00
Dr. Peter Poeml
cd406dde98
add link to plugin API to osc help output
2008-09-24 12:23:56 +00:00
Tom Patzig
cc0ce146e2
-added command 'rlog', to show commit logs of remote packages
2008-09-23 13:39:54 +00:00
Marcus Hüwe
a8181f7087
- fixed #419144
...
- fixed new_conf_template: commented out new 'http_headers' options
2008-08-21 18:17:40 +00:00
Marcus Hüwe
854fe0d97a
- addFiles(): added optional prj_obj parameter
...
- do_addremove():
* if "do_package_tracking" is enabled scan the project dir for new/disappeared packages
* added --recursive option (If CWD is a project dir then scan all package dirs as well)
* minor pathname fix
- fixed argument handling in some methods: don't remove items from a list while looping over it
2008-08-20 19:24:55 +00:00
Susanne Oberhauser
f07da13359
- only reparse the config if it was actually modified.
2008-08-20 09:40:00 +00:00
Marcus Hüwe
b2aceda67a
add new --project option to prjresults in order to show the results of a project without having a local wc (patch by Michael Wolf <maw@novell.com>)
2008-08-19 19:37:08 +00:00
Marcus Hüwe
e93678d5a0
- added submitrequest log command to show the history of a given id
2008-08-19 14:18:05 +00:00
Marcus Hüwe
06c5316ba2
changed text for the revoke message (as suggested by darix)
2008-08-17 21:14:59 +00:00
Marcus Hüwe
5140deebff
add the id of the new request to the revoke message
2008-08-17 20:12:19 +00:00
Marcus Hüwe
fc0d61bfce
- fixes for the last commit (r4684), actually only the change in core.py was intended.
...
now 'osc submitrequest create' checks if you already submitted requests for this package, if so it'll ask you if the previous submissions should be revoked
2008-08-17 19:10:44 +00:00
Marcus Hüwe
f4e4c91376
- minor fix in get_submit_request_list()
2008-08-17 18:53:54 +00:00
Michal Marek
4df8ffd6ea
Make 'metafromspec' and alias to 'updatepacmetafromspec', to make the command
...
easier to memorize
2008-08-08 15:23:03 +00:00
Michal Marek
d047b30aa8
unbreak osc init
2008-08-08 15:19:54 +00:00
Marcus Hüwe
3359646b02
- fix bug #412918
...
- added a file attribute to the ConfigError() class
- added new ConfigMissingApiurl() class
2008-08-07 17:14:26 +00:00
Marcus Hüwe
8d055f7990
- added OscConfigParser module:
...
OscConfigParser() behaves like a normal ConfigParser() object. The
only differences is that it preserves the order+format of configuration entries
and that it stores comments.
In order to keep the order and the format it makes use of the ConfigLineOrder()
class.
- removed .netrc cruft from the conf module
- other config cleanups
2008-08-07 16:40:55 +00:00
Dirk Mueller
1a3c80423a
typo fix
2008-08-04 13:33:40 +00:00
Dirk Mueller
65e9011f00
- add support for listing submitrequests not in state New to
...
osc submitreq list
2008-08-04 13:20:29 +00:00
Marcus Hüwe
3c5847e054
- init: added support to initialize a project dir
2008-08-01 13:58:49 +00:00
Marcus Hüwe
0020074a8a
- fix enhancement request #412157 (Add some guessing to "osc build")
...
- "osc build" can be called with the following arguments:
* osc build [OPTS] PLATFORM ARCH BUILD_DESCR
* osc build [OPTS] PLATFORM (ARCH = hostarch, BUILD_DESCR is detected automatically)
* osc build [OPTS] ARCH (PLATFORM = build_platform (config option), BUILD_DESCR is detected automatically)
* osc build [OPTS] BUILD_DESCR (PLATFORM = build_platform (config option), ARCH = hostarch)
* osc build [OPTS] (PLATFORM = build_platform (config option), ARCH = hostarch, BUILD_DESCR is detected automatically)
2008-07-30 16:45:00 +00:00
Marcus Hüwe
5c062ea121
- fixed bug #412145 (typo)
2008-07-25 10:19:32 +00:00
Dirk Mueller
6792642166
- add "submitrequest" as an alias for "submitreq"
...
- add "submitrequest revoke" command to be able to
delete submissions to projects one can't write to
2008-07-25 09:34:29 +00:00
Dirk Mueller
494381866d
revert back to throwing the httplib2 error, to be
...
able to preserve http headers etc
2008-07-23 20:56:20 +00:00
Dirk Mueller
048414088f
- implement --no-checks for osc build
...
- make osc submitreq succeed for submitting new packages
(previously the develproject check caused it to abort prematurely)
2008-07-23 20:05:09 +00:00
Dr. Peter Poeml
b37af9ed4f
add more information about aggregation of packages, and a link to the wiki page about it.
2008-07-17 17:46:21 +00:00
Dr. Peter Poeml
83862c1040
submitreq: add shortcut 'sr' for Darix
2008-07-09 20:38:49 +00:00
Dr. Peter Poeml
de0bb98200
add submitreq delete action (thanks to Dirk for the patch)
2008-07-09 15:22:18 +00:00
Marcus Hüwe
5b84831d25
don't expand/unexpand if the working copy has local modifications - this is an ugly workaround for #399247 but this way the working copy isn't screwed up
2008-07-04 12:54:02 +00:00
Marcus Hüwe
73fd228c14
- use apiurl from the storedir when running 'osc submitreq list/create'
2008-06-27 17:54:59 +00:00
Dirk Mueller
eb8a8bbc79
- support "submitreq list" also in a project
...
directory
2008-06-27 17:14:15 +00:00
Dirk Mueller
6d5dab90b4
list submitrequests in a sorted order.. newest first
2008-06-27 16:36:36 +00:00
Marcus Hüwe
5768e35047
- applied slightly modified version of Node's patch which added a --revision option to do_linkpac
2008-06-26 10:47:58 +00:00
Marcus Hüwe
927019a7eb
- added initial support for involved projects/packages (the xpath predicate is stolen from the webclient;) )
2008-06-24 15:07:44 +00:00
Dirk Mueller
3df4edb5bb
update usage info
2008-06-24 09:39:39 +00:00
Dirk Mueller
aa0a6976cb
guess the parameters of list if inside a working dir
2008-06-24 09:37:49 +00:00
Marcus Hüwe
be934cc16d
- fix bug #400431
2008-06-18 14:34:30 +00:00
Dr. Peter Poeml
2bd196d8e3
- osc buildhist: change the output into a format which better matches actual RPM filenames.
...
- give commit message tempfiles a ".diff" suffix, so syntax highlighting might work in some editors
2008-06-17 06:12:48 +00:00
Dr. Peter Poeml
693987ac49
osc update: after update, reset the revision when updating multiple package.
...
Fixes "404: Not Found" type errors when updating an entire project. [bnc#399177]
2008-06-11 08:29:27 +00:00
Dr. Peter Poeml
f4228de56b
osc wipebinaries: add missing check for commandline arguments, which could
...
cause a PACKAGE argument to be ignored
2008-06-11 08:01:10 +00:00
Dr. Peter Poeml
86ad9766b2
- make submit request possible without giving commandline arguments, under some
...
circumstances -- when there is a working copy, and the package is a source
link, osc will figure out what's needed.
- don't stop submitrequests on packages that have a devel project defined, if
the submit comes from that project.
- osc checkout: checkout of source links is now done in expanded form per
default. --unexpand-link can be used to get the raw link file (and patches).
2008-06-06 12:04:34 +00:00
Dr. Peter Poeml
5438e4023a
osc submitreq: look up the develproject of the target, and if there is one,
...
don't create the request, unless forced with --nodevelproject.
2008-06-03 15:01:01 +00:00
Dr. Peter Poeml
7641ed0c8c
osc branch: add --nodevelproject
2008-06-03 13:16:55 +00:00
Dr. Peter Poeml
98090f8b09
make 'osc branch' show the actually created branch project name, not a guess one.
2008-06-03 12:43:52 +00:00
Dr. Peter Poeml
3f9b53ca6e
osc branch: use --expand-link in the example that shows how to check out the
...
branched package
2008-05-26 13:12:05 +00:00
Dr. Peter Poeml
ac55bcaa5a
make help of osc init clearer
2008-05-21 16:10:20 +00:00
Dr. Peter Poeml
d8245f5f36
- add osc branch command, using the branch API call to branch a package to
...
home:poeml:branches:PRJ/PKG
2008-05-21 15:49:00 +00:00
Dr. Peter Poeml
7e524fd442
- osc commit: open $EDITOR for commit message
...
- osc status: implement -q/--quiet switch
- osc deletepac: allow deletion of multiple packages at once
- osc info: slightly more verbose
- core.edit_message() added
- core.getStatus() accepts new "quiet" argument
- oscerr.UserAbort added
2008-05-21 13:44:49 +00:00
Tom Patzig
4476afafd7
-cosmetic changes for rprjresults and rresults
...
-show Legend for prjresults only, if there are also packages to show
2008-05-20 11:36:16 +00:00
Dr. Peter Poeml
d80c47c0b9
- osc maintainer:
...
-D devel_project, --devel-project=devel_project
define the project where this package is primarily
developed
- core: add addDevelProject() method
2008-05-20 08:29:54 +00:00
Tom Patzig
abb97eb595
-new command rprjresults, to show remote project results
...
-new command rresults, to show remote package results
2008-05-16 12:25:50 +00:00
Tom Patzig
abcb4f8489
- legend in prjresults is default enabled
...
- added status-filter and name-filter option to prjresults
2008-05-15 18:09:24 +00:00
Marcus Hüwe
34e7822bbb
- added --baselibs option to osc build
2008-05-08 12:21:57 +00:00
Pavol Rusnak
afec162189
- added --keep-maintainers switch to copypac
...
(do not remove original maintainers and replace them with caller)
2008-04-30 12:28:25 +00:00
Dr. Peter Poeml
3018460596
Merged revisions 3774-3775,3779,3781-3782,3787,3789-3793,3798,3802,3805,3817-3822,3827,3829-3830,3837-3839,3841-3842,3848-3850 via svnmerge from
...
https://forgesvn1.novell.com/svn/opensuse/branches/buildservice/osc-exception-handling
........
r3774 | poeml | 2008-04-22 17:39:45 +0200 (Tue, 22 Apr 2008) | 3 lines
A first draft on implement systematic exception handling:
Add errors.py with some exceptions defined, and babysitter.py to handle them
........
r3775 | poeml | 2008-04-22 22:34:12 +0200 (Tue, 22 Apr 2008) | 9 lines
- new global options:
--debugger jump into the debugger before executing anything
--post-mortem jump into the debugger in case of errors
-t, --traceback print call trace in case of errors
- traceback and post_mortem can also be set in .oscrc.
- catch more errors (HTTPError).
- make config accessible from outside of the Osc instance, by making it a class
attribute
........
r3779 | poeml | 2008-04-23 00:55:49 +0200 (Wed, 23 Apr 2008) | 5 lines
- new global option:
-d, --debug print info useful for debugging
- catch some more errors (HTTPError), with OscHTTPError which isn't very
advanced yet.
........
r3781 | Marcus_H | 2008-04-23 01:02:00 +0200 (Wed, 23 Apr 2008) | 2 lines
- added OscConfigError class (just for testing).
- small change in the signature of the OscBaseError constructor (actually we should get rid of the 'args' tuple because it will be deprecated sooner or later
........
r3782 | Marcus_H | 2008-04-23 02:02:13 +0200 (Wed, 23 Apr 2008) | 2 lines
- access the prg.conf.config dict in a save way - this way we avoid AttributeErrors if the prg.conf.config dict doesn't exist
- in case of an configparser error we have to use the prg.options object directly (this was removed in r3781 by accident)
........
r3787 | poeml | 2008-04-23 09:23:56 +0200 (Wed, 23 Apr 2008) | 4 lines
- remove local exception handling from do_req
- for HTTPError, print details (headers and response) when in debug mode
- catch AttributeError
........
r3789 | poeml | 2008-04-23 16:23:14 +0200 (Wed, 23 Apr 2008) | 4 lines
- errors: add two new classes named OscWrongOptionsError and OscWrongArgsError
- commandline: raise instances of the new errors in a number of places
- commandline: add get_cmd_help() to Osc instance which returns the formatted help of a subcommand
........
r3790 | Marcus_H | 2008-04-23 16:48:28 +0200 (Wed, 23 Apr 2008) | 4 lines
- added 2 new exception classes: OscNoConfigfileError and OscIOError
- added new method write_config() to the conf.py module: This method writes osc's configuration file
- minor cleanups in the conf module
........
r3791 | poeml | 2008-04-23 17:11:07 +0200 (Wed, 23 Apr 2008) | 3 lines
small compatibility fix for r3790: try-except-finally isn't supported in
python-2.4.2, thus do the same as try-except inside a try-finally.
........
r3792 | poeml | 2008-04-23 17:37:53 +0200 (Wed, 23 Apr 2008) | 2 lines
fix up the remaining places regarding handling of errors related to commandline parsing
........
r3793 | poeml | 2008-04-23 17:40:34 +0200 (Wed, 23 Apr 2008) | 3 lines
raise a NoWorkingCopyError in osc.core.store_read_project() in case of an
IOError
........
r3798 | Marcus_H | 2008-04-23 23:55:24 +0200 (Wed, 23 Apr 2008) | 1 line
ported -r3797 from trunk
........
r3802 | Marcus_H | 2008-04-24 11:00:55 +0200 (Thu, 24 Apr 2008) | 1 line
ported -r3801 from trunk
........
r3805 | poeml | 2008-04-24 12:52:30 +0200 (Thu, 24 Apr 2008) | 2 lines
raise OscHTTPError in show_pattern_meta(), replacing local error handling
........
r3817 | poeml | 2008-04-24 20:21:32 +0200 (Thu, 24 Apr 2008) | 9 lines
- remove errors.OscHTTPError again.
it seems simpler to use urllib2.HTTPError instead (and just add a specific
error text message where appropriate, and re-raise)
- for 404s, check out _which_ part was not found
it is very ugly, but may be considered Good for pragmatic reasons
- removed local exception handling and workaround for returned 500's from
delete_package() and delete_project(), thereby getting rid of 4 possible exit
points.
........
r3818 | Marcus_H | 2008-04-24 22:36:17 +0200 (Thu, 24 Apr 2008) | 1 line
- this check is superfluous because every HTTPError instance has a code attribute
........
r3819 | poeml | 2008-04-25 00:39:39 +0200 (Fri, 25 Apr 2008) | 1 line
remove a forgotten debug line from core.delete_project()
........
r3820 | poeml | 2008-04-25 10:07:58 +0200 (Fri, 25 Apr 2008) | 2 lines
- ditch local error handling from wipebinaries(), rebuild(), and abortbuild()
........
r3821 | poeml | 2008-04-25 10:56:38 +0200 (Fri, 25 Apr 2008) | 2 lines
It is never needed to import the exception module.
........
r3822 | poeml | 2008-04-25 11:13:39 +0200 (Fri, 25 Apr 2008) | 4 lines
- when going into the debugger with --post-mortem, always print a traceback before
(thus implying -t)
- do not jump into the debugger if not on a TTY, or working in interactive mode
........
r3827 | poeml | 2008-04-25 13:07:46 +0200 (Fri, 25 Apr 2008) | 9 lines
- add errors.OscWorkingCopyOutdated, which takes a tuple with three args:
path to working copy, current rev, expected rev
- add handler for urllib2.URLError errors to the babysitter
- simplify the OscWrongArgsError and OscWrongOptionsError handlers, by removing
the extra line "Sorry, wrong ..." that was printed before the messages given
when the error was raised.
- remove one more errors.OscHTTPError which was still there, and raise
urllib2.HTTPError instead (show_package_meta())
........
r3829 | poeml | 2008-04-25 14:19:10 +0200 (Fri, 25 Apr 2008) | 11 lines
- comment some methods in osc.core which are used by nearly all do_* methods in
osc.commandline
- improve "is not a package/project dir" error messages, by printing the
absolute path tried, instead of '.' for the cwd
- make core.store_read_package() raise a proper NoWorkingCopyError instead of
terminating
- give attribution to things in babysitter.py copied from mercurial
- prefix HTTPError exceptions with 'Server returned an error:'
- remove obsolete local error handling from do_prjresults(), do_importsrcpkg(),
do_repos()
........
r3830 | poeml | 2008-04-25 14:29:35 +0200 (Fri, 25 Apr 2008) | 1 line
catch IOError exceptions in the babysitter
........
r3837 | poeml | 2008-04-25 17:27:36 +0200 (Fri, 25 Apr 2008) | 5 lines
- do_remotebuildlog: raise errors for wrong arguments, remove exits
- raise AttributeError in make_meta_url() instead of exiting
- delete unused method core.delete_server_files()
- replace exit call inside make_meta_url() with an AttributeError
........
r3838 | poeml | 2008-04-25 17:49:18 +0200 (Fri, 25 Apr 2008) | 1 line
simplify the check in do_checkout if a project exists, by using show_project_meta() instead of meta_exists
........
r3839 | poeml | 2008-04-25 18:31:26 +0200 (Fri, 25 Apr 2008) | 6 lines
- commandline do_checkout(): change the order of the two checks, first do the
(cheaper) check for existing directory
- core.core checkout_package(): simplify the check in if the package
exists, by using show_package_meta() instead of meta_exists
Let it throw an exception, instead of using sys.exit().
........
r3841 | Marcus_H | 2008-04-27 15:48:06 +0200 (Sun, 27 Apr 2008) | 5 lines
- added 2 new exception classes: PackageError() and PackageExistsError. The PackageError() class is meant to be the base class for all subsequent package exceptions.
- get rid of 2 sys.exit(1) calls
- make the update() method of the Project() class safer: in any case we have to write the _packages file otherwise the package tracking will be screwed up.
- minor fix in delPackage(): use getTransActPath() when printing out the filename
........
r3842 | Marcus_H | 2008-04-27 16:52:55 +0200 (Sun, 27 Apr 2008) | 3 lines
- make the commit() method safe: in any case we have to write the _packages file otherwise the package tracking will be screwed up.
- removed another sys.exit(1): raise an exception if a package is missing when doing a commit. For now we use the PackageExistsError() exception but this might change in the future (updated description of PackageExistsError() according to this change)
........
r3848 | poeml | 2008-04-28 12:46:45 +0200 (Mon, 28 Apr 2008) | 3 lines
rename several error classes, dropping the "Osc" prefix, and "Error" suffix in
cases where they don't really make sense.
........
r3849 | poeml | 2008-04-28 12:57:32 +0200 (Mon, 28 Apr 2008) | 3 lines
- rename osc.errors module to osc.oscerr, to make it easier to import it from
other programs and have a crystal clear namespace
........
r3850 | poeml | 2008-04-28 13:26:12 +0200 (Mon, 28 Apr 2008) | 2 lines
split PackageExists exception class into PackageExists and PackageMissing
........
2008-04-28 16:37:44 +00:00
Dr. Peter Poeml
5d7df534ee
submitreq show: fix the --diff option; the diff was shown reversed. (bnc#379519)
2008-04-28 09:39:07 +00:00
Marcus Hüwe
2440bed285
- added --job option to the do_build() command. (this option will be passed to build script)
2008-04-24 09:00:23 +00:00
Marcus Hüwe
4c6ce9ae56
- added new method getStatus() which calculates the status of certain packages
...
- cleaned up do_status() and added support for multiple project dirs (osc st prj_dir1 /path/to/prj_dir2 ...)
2008-04-23 21:51:24 +00:00
Marcus Hüwe
e9176c7513
- fixed bug #378752 (osc fails to delete patterns)
2008-04-10 21:04:17 +00:00
Marcus Hüwe
80ab6bf345
- fixed bug #359846 :
...
the BUILD_DIST environment variable will be ignored by osc
- the following environment variables can still be used:
# OSC_SU_WRAPPER overrides the setting of su-wrapper.
# OSC_BUILD_ROOT overrides the setting of build-root.
# OSC_PACKAGECACHEDIR overrides the setting of packagecachedir.
(now they're documented in the helptext)
2008-04-09 18:45:59 +00:00
Marcus Hüwe
a3f948dede
- fixed bug #376285 :
...
* make_dir() and checkout_package() got a new optionally 'prj_dir' parameter. This parameter specifies in which dir we want to create new project/package dirs.
2008-04-02 15:30:44 +00:00
Dr. Peter Poeml
e62dd94cc0
copypac: make the server-side copy the default. But do a client-side copy if source and target are not on the same buildservice instance.
2008-04-02 14:36:23 +00:00
Marcus Hüwe
a20e354d07
- small apiurl fixes
2008-03-27 00:36:17 +00:00
Dr. Peter Poeml
3db9e6449c
Link handling:
...
Add support for handling linked packages in expanded form. They can be checked
out, updated (expanding or unexpanding them), and built locally.
Missing: commit support.
Newly introduced options are:
- osc checkout: --expand-link
- osc update: --expand-link and --unexpand-link
Other changes:
- osc core: add show_upstream_xsrcmd5() method which returns the xsrcmd5 (if a
linkinfo element exists only, of course)
- made updating of expanded sources work with package tracking, too.
2008-03-24 20:24:49 +00:00
Dr. Peter Poeml
64f3d8c55e
submitreq show: if the target package doesn't exist, a diff cannot be produced.
2008-03-20 20:11:30 +00:00
Marcus Hüwe
3c3e961f4e
- minor fix in createPackageDir
...
- osc mkpac only works when 'do_package_tracking' is enabled
2008-03-17 23:43:32 +00:00
Marcus Hüwe
3fdf758dbb
- do_repos() should work in a project dir too
2008-03-17 23:24:28 +00:00
Dr. Peter Poeml
2493ea555a
- copypac: do a server-side copy (via a single api call) when
...
used with -s / --server-side.
This might be the default behaviour later.
An option to specify the source revision is missing yet.
2008-03-17 21:46:42 +00:00
Dr. Peter Poeml
54c1690309
osc req: add option -a / --add-header to add arbitrary request headers
2008-03-16 20:46:16 +00:00
Marcus Hüwe
5d57d7e299
- added 3 new methods:
...
* createPackageDir(): create and initialize a new package dir in
the given project.
* get_apiurl_usr(): returns the username for a certain apiurl
* get_configParser(): returns an ConfigParser() object which can be
used for parsing the ~/.oscrc file
- fixed username issues when creating a new package (the problem was
that the username for the default host was used and not the one for
that specific apiurl)
- some small fixes in the do_importsrcpkg() method
2008-03-15 22:51:37 +00:00
Pavol Rusnak
734973a0bd
csv exported project results now use ';' as default
2008-03-13 11:13:22 +00:00
Dr. Peter Poeml
2bf92fce75
submitreq:
...
- when requesting a submit, save the source package's revision id (looking up
what it currently is)
- give the user a way to override it, to submit an older revision
- when using show --diff, take the actual old revision into account. Thus, the
diff is against the source revision of the time of request creation.
2008-03-12 23:37:35 +00:00
Dr. Peter Poeml
6ab8fb52c7
- remove remove obsolete, commented code (do_editpac(), do_editprj())
...
- fix a small tabbing issue
2008-03-12 18:26:41 +00:00
Dr. Peter Poeml
241f528dc4
implement a submitreq 'accept' action, resulting in the respective state change
2008-03-12 18:22:11 +00:00
Jürgen Weigert
0334ea4218
add --debuginfo switch to osc build
2008-03-11 15:18:02 +00:00
Dr. Peter Poeml
c0fabfc449
merged the package-tracking branch changes r2404:3491 into the trunk.
2008-03-10 18:04:23 +00:00
Michal Marek
3613893199
better fix: use %(mapping keys)s in templates
2008-03-07 09:13:30 +00:00
Michal Marek
ad2493d496
fixed last change (r3445)
2008-03-07 09:01:13 +00:00
Dr. Peter Poeml
d87de082c2
submitreq:
...
- rename 'refuse' -> 'decline', which is more polite.
- show: make the diff optional
- add RequestState class
- handle state history
- implement 'decline' action
2008-03-06 10:25:45 +00:00
Dr. Peter Poeml
d63779a6a4
rename the new merge requests to submit requests
2008-03-05 23:51:48 +00:00
Susanne Oberhauser
b4df120e5b
- adjust osc init docstring to new realities (osc meta instead of osc
...
createpac)
2008-03-05 21:05:17 +00:00
Dr. Peter Poeml
488e14a0d8
typo accepd -> accept
2008-03-04 23:48:34 +00:00
Dr. Peter Poeml
aec7129a9b
- add a new subcommand 'mergereq' to handle merge requests. So far, it can
...
create, list, show requests.
- internally, add a MergeReq class, and do the needed (HTTP) requests.
2008-03-04 23:41:00 +00:00
Michal Marek
6c20c7203f
fix importsrcpkg when $projectdir/.osc/_apiurl is an alternative apiurl
2008-03-03 13:51:01 +00:00
Marcus Hüwe
016c80db86
- added optional apiurl parameter to the following methods:
...
meta_exists, make_meta_url, checkRevision
if no apiurl parameter is specified the global value (conf.config['apiurl'])
will be used. This should fix bug #361764
- some small apiurl fixes in the make_diff method (the package_tracking branch already has this fix)
2008-02-18 13:44:20 +00:00
Michal Marek
3dd6ef0f71
added option --csv to 'osc prjresults' to output a CSV table
2008-02-12 12:45:06 +00:00
Dr. Peter Poeml
63e4d8da3c
- osc build: add --no-verify, to skip the package signature verification step
2008-01-24 18:06:45 +00:00
Marcus Hüwe
f8b5963c7a
- check if a project exists before initializing the project dir
2008-01-18 10:35:57 +00:00
Marcus Hüwe
a8788c2c4e
- added revision option to do_cat()
2008-01-15 18:58:58 +00:00
Marcus Hüwe
5306a78503
- added two new options to osc build:
...
* --local-package: use this option if you're trying to build a
package which doesn't exist on the server
* --alternative-project <project>: use this option to specify an
alternative project if the current project doesn't exist on the
server, e.g.: osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
- some other minor cleanups in build.py
- get_repos_of_project() is now a generator function
2008-01-07 14:54:31 +00:00
Marcus Hüwe
53e1640b1e
- added new command "remotebuildlog" to show the buildlog of a package
...
(you don't have to checkout the package to view the buildlog)
- renamed "get_log()" to "get_buildlog" to avoid any confusion with
"get_commitlog()"
- added new method "print_buildlog()" which prints out the buildlog on the
standard output
2008-01-03 22:10:16 +00:00
Marcus Hüwe
5242289d3d
- do_cat(): do not print a newline (strip the trailing '\n' from string)
2007-12-13 12:00:16 +00:00
Dr. Peter Poeml
6781119d43
- cat: simplify the code a bit; don't print header and footer lines
...
- unification of the help output of some commands
2007-12-10 14:23:58 +00:00
Dr. Peter Poeml
aca6c6979e
cat: fix the test if the file is binary, which swallowed the first 4098 bytes
2007-11-30 10:28:00 +00:00
Dr. Peter Poeml
9aafba838f
improve wording in rdiff documentation
2007-11-29 17:32:52 +00:00
Dr. Peter Poeml
620bc2ea68
add rdiff subcommand, to allow server-side diffs between arbitrary packages
2007-11-29 17:22:57 +00:00
Marcus Hüwe
d4bfd42bb4
- copied init_project_dir() method from the osc-package-tracking branch (just removed the do_package_tracking stuff)
...
- checkout an empty project instead of doing nothing
2007-11-29 12:54:07 +00:00
Marcus Hüwe
7b9f85f97f
- reworked the diff functionality:
...
* some new things like showing newly added files
* moved the whole code into a new methode (make_diff())
* behave more like svn when doing a diff against a certain revision
- changed the storedir attribut of the Package() class to an absolute
filename - normally this shouldn't have any impact on existing methods, functionality etc.
2007-11-26 18:13:51 +00:00
Marcus Hüwe
69e3fd1d4e
- added new "cat" command to print a file on the standard output
2007-11-02 18:18:30 +00:00
Dr. Peter Poeml
675901bc5d
- aggregatepac: new command, similar to linkpac. Patch from Pavol Rusnak.
...
- prjresults: for newly added packages, build status may be missing. Cope with that.
2007-10-30 13:45:54 +00:00
Marcus Hüwe
42e128687d
- added --build-failed and --broken options to the do_wipebinaries()
...
method (this also fixes bug/enhancement #335498 )
2007-10-27 19:13:24 +00:00
Marcus Hüwe
d0b0b1bdb5
enabled deletion of packages as the backend now supports it.
2007-10-13 23:15:49 +00:00
Marcus Hüwe
69b7e3bfc7
added a bit more functionality to do_maintainers. It is possible to add and delete users from a project/package
2007-09-12 18:01:13 +00:00
Marcus Hüwe
40d2ce205e
- added verbose option to do_maintainers:
...
* it basically lists some more information about
each maintainer
- replaced get_user_email() with get_user_data()
2007-09-03 16:18:37 +00:00
Dr. Peter Poeml
9ce40d4bab
- build: allow to use lbuild, a compatible replacement for build
2007-09-03 14:52:45 +00:00
Dr. Peter Poeml
459651ed60
make osc call build with --changelog option, by default [ #298436 ]
2007-09-03 10:25:18 +00:00
Dr. Peter Poeml
27cee26d4a
new command 'maintainer'
2007-09-03 10:17:26 +00:00
Dr. Peter Poeml
70524c88c7
fix typo in error message in do_importsrcpkg()
2007-08-27 18:02:53 +00:00
Dr. Peter Poeml
a3a2667742
- change conf.get_config() to take three optional override values:
...
get_config(override_conffile = None,
override_http_debug = None,
override_apisrv = None)
Thus, it should be possible to use the osc module with one simple
conf.get_config() call. It is no longer required to set up the api url in the
config dict, and call conf.init_basicauth().
2007-08-22 10:18:25 +00:00
Dr. Peter Poeml
0da80f0fd9
- core: add get_binary_file(), with contribution from James Oakley
...
- ls command: add -b option to list binaries
- req command: show error response also for 404 responses
2007-08-16 18:15:08 +00:00
Marcus Hüwe
02d77c4bda
fixed "osc build" if $BUILD_DIST is set
2007-08-15 19:28:08 +00:00
Dr. Peter Poeml
da6f6c4a8a
build: add --changelog option to force update of the package changelog from a changes file
2007-08-14 11:26:13 +00:00
Dr. Peter Poeml
cdf91d7f39
commit: use the documented commit method by default now
2007-08-14 10:30:39 +00:00
Dr. Peter Poeml
5cd1ace719
don't hardcode 'package' query parameter into show_results_meta()
2007-08-11 12:29:38 +00:00
Dr. Peter Poeml
6298267101
meta: remove notion of non-implemented --create switch. give example for meta pkg usage
2007-08-09 16:15:13 +00:00
Dr. Peter Poeml
929fe9b12c
search: add --repos-baseurl option
2007-08-09 11:35:08 +00:00
Marcus Hüwe
d75d98da50
fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue!
2007-08-08 19:48:38 +00:00
Marcus Hüwe
003c3dad5b
fixed two small typos
2007-08-08 15:44:14 +00:00
Marcus Hüwe
9921478c37
changed default behaviour of importsrcpkg(). The files will not be committed by default. To commit them use the --commit switch.
2007-07-30 18:11:52 +00:00
Marcus Hüwe
d6bdc3712f
- some more work on importsrcpkg():
...
* by default the new files will be comitted
(if it is a new package or if there are no
source files on the server)
* added --disable-commit option switch to
import the package only locally
* added --delete-old-files option switch to
delete old files from the server.
- some changes in the Package class:
* extended existing commit() method to do
all the commit work (before it was done
in the do_commit() method).
* moved stuff from the constructor into a
new method (update_datastructs()).
2007-07-30 11:12:42 +00:00
Marcus Hüwe
155d60cfa0
use rpm-python to detect the "Name:", "Summary:", "%description" of a (s)rpm.
...
This change speeds up some things
2007-07-29 15:27:27 +00:00
Dr. Peter Poeml
8316936fa5
allow to import source rpms by specifying an URL
2007-07-25 12:21:46 +00:00
Dr. Peter Poeml
633fd2c10f
simplify do_importsrcpkg()
2007-07-25 12:14:32 +00:00
Dr. Peter Poeml
8fe9ac2ed1
add req command to issue arbitrary requests to the API
2007-07-25 10:56:04 +00:00
Dr. Peter Poeml
31953fbbe4
append missing newline if do_commits=False [ #293672 ]
2007-07-24 10:35:08 +00:00
Marcus Hüwe
f36e3133c7
- added new importfromsrcpkg command:
...
* now a package can be imported from a
src.rpm
* thanks to Peter for his is_rpm() and is_srcrpm()
methods
- split out some methods into smaller ones (so they
can be reused for other tasks)
- added some new methods for unpacking a src.rpm
- changed read_meta_from_spec() method to be more
flexible (it is possible to specify the tags and
sections).
2007-07-23 16:03:30 +00:00
Dr. Peter Poeml
de9faebefe
- meta: add --delete switch to delete pattern files
...
- complete last fix (don't implicitely add .xml to pattern files) -- forgot to
commit the part in osc/core.py.
2007-07-19 12:23:42 +00:00
Dr. Peter Poeml
1945a7a683
- fix indentation (enforceming pattern file argument)
...
- don't implicitely add .xml to pattern files -- it will probably cause
confusion.
2007-07-19 11:54:13 +00:00
Dr. Peter Poeml
a9dbc4bb1d
fix error message which osc issues if build package is too old
2007-07-19 10:49:30 +00:00
Dr. Peter Poeml
ad9517cb81
meta: extend usage info for 'meta pattern'
2007-07-19 10:14:10 +00:00
Dr. Peter Poeml
04bd877a59
- meta: allow for editing patterns
...
# list patterns:
osc meta pattern <prj>
# show pattern foo:
osc meta pattern <prj> foo
# edit pattern foo:
osc meta pattern <prj> foo -e
2007-07-19 10:08:42 +00:00
Dr. Peter Poeml
d260050dc0
- commit (using the currently documented way): do DELETEs _before_ generating
...
an "upload" revision with PUTs. The DELETEs would be invalidated by the
commit.
2007-07-18 13:20:59 +00:00
Dr. Peter Poeml
5c0b0d64b6
commit: flush stdout, so that the progress dots are seen directly when being written
2007-07-18 13:05:13 +00:00
Dr. Peter Poeml
05b47f7f98
- commit: switch to new commit mode also if the -F switch is used
...
- update NEWS file
2007-07-16 17:30:48 +00:00
Dr. Peter Poeml
b5e1dec8ad
- api now sends HTTP/1.1 400 Bad Request for invalid xml. Thus, show the reply
...
body because it contains helpful info.
- repair linkpac for the new metadata editing facilities. copypac still seems
to work.
2007-07-16 17:06:06 +00:00
Dr. Peter Poeml
5284a9b783
- meta: implement -F|--file switch. Can read from stdin to ease scripting.
...
- rework editmeta class, because it was programmed to pull content from the
server first
- add a catch-all for the depracated commands which refers to the new meta command
2007-07-16 16:20:09 +00:00
Dr. Peter Poeml
4944828bf1
- improve usage info on meta command
...
- if PUT on metadata fails with a 500, and http_debug is True, print out the
body of the server reply
- rename update_pacmeta() to update_local_pacmeta() for clarity
- rename update_filesmeta() to update_local_filesmeta() for clarity
2007-07-16 13:40:58 +00:00
Dr. Peter Poeml
3aa108d32a
usage info for the meta command
2007-07-16 10:58:11 +00:00
Dr. Peter Poeml
9921fcac8e
Switch from software.opensuse.org to download.opensuse.org as default
...
download URL
2007-07-16 09:45:17 +00:00