Marcus Huewe
3025dbf954
Merge branch 'support_appimage_yml' of https://github.com/adrianschroeter/osc
...
Support "appimage.yml" in parse_repoarchdescr.
2019-10-21 16:06:29 +02:00
lethliel
333028401e
use _repository if alt prj is used
...
Use _repository as package name if alternative_project is used
2019-10-21 13:29:37 +02:00
e43d0641c6
find appimage.yml files as build description
2019-10-17 08:07:38 +02:00
lethliel
aaa51bcab1
improve help text for osc maintained
...
The help text does not indicate that only osc mbranch
really creates a branch.
osc maintained and osc sm are just aliases for osc mbranch --dryrun
2019-10-16 14:41:22 +02:00
lethliel
edc2bde460
Transfer the name of the input file to vc
...
instead of the content and let vc do the rest.
This prevents calling echo -e and interpreting
escape characters.
2019-09-25 11:36:25 +02:00
Marcus Huewe
5756e90b90
Merge branch 'fix_decoding_in_osc_cat' of https://github.com/lethliel/osc
...
Do not perform any decoding in do_cat.
2019-09-18 16:36:00 +02:00
lethliel
6f674a6289
do not decode diff before passing it to run_pager
...
run_pager will take care of the bytes-like object and
will directly write it to sys.stdout.buffer.write() or
NamedTemporaryFile.
2019-09-18 11:26:16 +02:00
lethliel
d1d45f4618
fix decoding for osc cat
...
use sys.stdout.buffer.write() to print encoded data
correctly
2019-09-18 10:49:39 +02:00
Marco Strigl
1e4e7edad5
Merge pull request #446 from lethliel/add_error_for_issue_445
...
print error and exit if p.apiurl != -A <apiurl> using osc sr
2019-09-17 14:11:20 +02:00
Marco Strigl
035457cc26
Merge pull request #630 from lethliel/fix_decoding_on_lbl
...
decode data on osc lbl
2019-09-12 12:27:42 +02:00
lethliel
ee64437521
decode data on osc lbl
2019-09-12 10:41:26 +02:00
Mike Gorse
ef1c605a32
Initialize diff as bytes
...
Otherwise, python 3 will throw a traceback if the fallback code is
triggered, since it appends bytes.
2019-09-11 10:05:32 -05:00
Marcus Huewe
749f994465
Merge branch 'simplify_sr_on_prj_level' of https://github.com/lethliel/osc
...
Simplify the project sr handling in do_submitrequest a bit. It also fixes
a bug in case a target project and --separate-request is specified.
Other bugs are retained for now (for instance, --update-link is ignored).
2019-08-30 10:52:52 +02:00
lethliel
3da7b9b3d8
simplify osc sr code in submitting prj
...
Most of the stuff is now done in the API.
For just submitting all in one request the following is sufficient:
<action type="submit"> <source project="%s" /> %s </action>
If a target project is given it looks like this:
<action type="submit"> <source project="%s" /> <target project="%s"> %s </action>
We don't need package name or source package and targets anymore.
This is all handled by the API now.
For the --seperate-requests case the check for the entries in the linkinfo
is not working on most cases. So we handle this in the do_submitrequest
and skip the package if X-Opensuse-Errorcode is missing_action which means
basically nothing to do for this package
redesign target_project handling
2019-08-30 10:42:08 +02:00
lethliel
74c70620b7
Add project parameter to print_repos
...
This is needed if the project differs from the current
working copy.
Fixes https://github.com/openSUSE/osc/issues/623
2019-08-30 10:32:02 +02:00
Marcus Huewe
e7397221b3
Add --change-password example to the help text of do_config
...
This should have been part of commit
cba4b58bbe
("Improve password
handling").
2019-08-29 16:42:09 +02:00
lethliel
cba4b58bbe
Improve password handling
...
* Adapt do_config to use the new credentials manager implementation
and add a --change-password option which can be used to change the
password.
* Adapt config_set_option to follow the change in do_config.
* Split selection of the credentials manager descriptor to reuse it
in do_config and interactive_config_setup.
* Introduce new ConfigMissingCredentialsError which is raised in case
of missing credentials (user or password). In this case the user will
be asked to enter the new credentials.
2019-08-29 16:11:17 +02:00
Jimmy Berry
6a3976dc22
osc/core: parseRevisionOption(): cleanup and make logic consistent.
...
Handle multiple revisions the same as a single revision in terms of what
is allowed (digit, or 32 character string [md5]). Additionally, support
either blank or "latest" to mean latest revision (None).
This allows for new revision to be specified without old revision like the
following example:
osc rdiff ... -r :17
2019-08-26 16:08:04 -05:00
lethliel
428a81e451
Refactor config setup dialog
...
Move logic to conf module in new function interactive_config_setup
for new config file and missing apiurl section.
Dropped keyring code, because it was never used in write_initial_config()
2019-08-26 17:25:56 +02:00
Marcus Huewe
63c103770a
Merge branch 'fix_600_osc-h_not_working_with_plugins' of https://github.com/lethliel/osc
...
python3 "workaround" for the quite fragile code in
RawCmdln._help_preprocess: It depends on the "non-deterministic" order
of preprocessor.items(). Hence, the results may differ on python2 and
python3. The real fix is probably to enforce a fixed iteration order.
See also the discussion in [1].
[1] https://github.com/openSUSE/osc/pull/604
2019-08-03 16:20:01 +02:00
lethliel
c78c8178e6
prevent plugins to break help
...
prevent call of preprocessor if ${cmd_name} marker is accidentaly set,
but cmdname is None.
Also for cmd_option_list and cmd_usage
overwrite _help_preprocess_* functions in Osc class
2019-08-02 20:02:14 +02:00
Marcus Huewe
6e95f8019d
Merge branch 'fix_#607' of https://github.com/lethliel/osc
...
Do not apply the --target-package-filter pattern if there is no target
package.
2019-08-02 13:31:53 +02:00
Marco Strigl
d2de7ccc97
Merge branch 'master' into maint_enforce_branch
2019-07-25 13:46:18 +02:00
f465717668
allow implicit branch on maintenance request creation
...
via --enforce-branching option
This may be default by server side settings
2019-07-25 13:43:45 +02:00
Marcus Huewe
71ae93b35a
Merge branch 'switch_diffs_to_bytes' of https://github.com/lethliel/osc
...
Since we do not know the files' encoding, the diff functions/methods
have to return bytes. Note: decoding the diff result is wrong in
general (see the discussion in [1]).
[1] https://github.com/openSUSE/osc/pull/554
2019-07-24 14:45:23 +02:00
lethliel
2b47be6b1e
switch to difflib.diff_bytes in python3 case.
...
The files are now opened as rb for diffing. In python2 nothing changes.
In python3 the returned diff is bytes now.
The following changes were made:
* commandline.py: The returned diff is now bytes
* get_diff now returs the diff as a bytes-like object
* run_pager writes with sys.stdout.buffer.write if message
is not a string
* for the commit message the returned diff needs to be decoded
now. Otherwise it will just producce garbage. For the commit
message the diff on decoded bytes-objects is ok. (nothing harmfull
can happen here)
* fixed submit_action_diff
* fixed request_interactive_review
2019-07-24 13:48:39 +02:00
lethliel
0c0dca0b27
Fix package filtering for osc rq
...
Check if action.tgt_package is None.
2019-07-23 15:51:41 +02:00
lethliel
cc44dded85
Do not decode output from osc api calls
...
Do not guess the decoding of the returned output on osc api calls.
This could lead to unexptected behavior. Just use sys.stdout.buffer.write()
to print the bytes-like object in python3.
2019-07-19 08:44:57 +02:00
lethliel
49b0325ab0
fix error when f.size is None but f.mtime is not
...
The if statement just catches the case when both (f.size
and f.mtime) are None.
Added two elifs to catch the cases that just one of them is None.
2019-07-11 13:43:22 +02:00
lethliel
682452d914
[python3] fix osc lbl non utf8 encoding
...
data can contain non-utf8 chars. So passing data to
the decode_it function will solve this problem.
2019-06-21 10:13:31 +02:00
Marco Strigl
7df178b50b
Merge pull request #552 from lethliel/fix_unhandled_exception_on_empty_package
...
fix triggerreason on empty packages.
2019-06-12 13:07:16 +02:00
Marcus Huewe
a72d90a7af
Merge branch 'priorize-command-typo' of https://github.com/sknorr/osc
...
Spelling and grammar fixes.
2019-05-29 23:13:27 +02:00
6eac27ec1c
support different token operations (runservice, release and rebuild) (requires OBS 2.10)
2019-05-27 14:50:34 +02:00
Stefan Knorr
4c16177ada
Random drive-by typo fixes for osc command-line messages
2019-05-27 11:54:42 +02:00
Marcus Huewe
0c9c616bd8
Merge branch 'master' of https://github.com/andreas-schwab/osc
...
Decode data in do_token before printing it.
2019-05-25 23:14:41 +02:00
Marcus Huewe
c4dd37936f
Merge branch 'fix_offline_mode_for_build' of https://github.com/lethliel/osc
...
Do not make a http request if noinit is True in parse_repoarchdescr.
2019-05-25 23:10:49 +02:00
Stefan Knorr
b14c9cfd92
Add "prioritize" as (preferred) alias for "priorize" command
...
"priorize" is not an English word, "prioritize" is the correct
version:
* https://www.merriam-webster.com/dictionary/priorize
* https://www.merriam-webster.com/dictionary/prioritize
The "priorize" command will continue to exist after this commit, but the
documented version will be "prioritize".
2019-05-24 13:22:30 +02:00
7ed9ff32ad
osc token: decode data from trigger url
2019-05-23 09:53:05 +02:00
lethliel
178dfd16c3
fix offline build mode
...
The offline mode does not really work offline since
parse_repoarchdescr() uses get_buildconfig to store the
buildconfig in a temporary file.
Solution:
Use the same logic as in build.py. If in offline mode(noinit = True)
try to use the local _buildconfig file. If not in offline mode just
download the buildconfig from the server via get_buildconfig
2019-05-22 13:58:46 +02:00
lethliel
260d5f585a
fix outupt of status on attribute deletion
...
On osc meta attribute --attribue <name> --delete the returned
data is encoded. Therefore the sys.stdout.write(data) call fails.
Solution: Decode data
--> sys.stdout.write(decode_it(data))
2019-05-22 12:57:02 +02:00
lethliel
860548bc30
fix getbinaries in commandline (progress_meter)
...
change progress_meter = opts.quiet to
progress_meter = not opts.quiet
2019-05-16 15:21:16 +02:00
lethliel
877d5e50b6
fix triggerreason on empty packages.
...
When running osc triggerreason on newly created (empty) packages
the command failes with AttributeError: 'NoneType' object has no attribute 'text'
because root.find('explain') is NoneType.
Solution:
Check if root.find('explain') is None and print "No triggerreaseon found".
In this case also do not try to get the triggertime. It will result in the same error.
2019-05-15 11:45:20 +02:00
3886b95ae4
[python3] release command: fix exception on missing bytearray/str decode
2019-04-25 22:28:19 +02:00
Marco Strigl
fc8e6f8695
Merge pull request #529 from lethliel/python3_fix_bsc1131512
...
[python3] return value when adding attrs is bytes
2019-04-16 15:41:10 +02:00
lethliel
d10c9b4cea
[python3] fix sorting when using osc se
...
osc se did not sort the output anymore. The logic
in the existing results.sort(key=...) was wrong. Now it is using
key=itemgetter(0,1) has two columns and key=itemgetter(0) if there
is only one column.
2019-04-16 15:18:04 +02:00
lethliel
b7dea9ddcd
[python3] return value when adding attrs is bytes
...
When adding attribute with osc meta attribute <prj> -a <attr> -s '<val>'
the api call gets executed successfull but the return value needs to be
decoded to print it correctly.
2019-04-16 14:57:19 +02:00
lethliel
fe642db042
[python3] python3 support for commandline module
...
* use cmp_to_key from functools for python 2.7 and higer
* use self written cmp_to_key for python 2.6
* a lot of bytestring handling and decoding
2019-04-12 09:58:23 -05:00
Marcus Huewe
c39c3b8cae
Cleanup the source services execution code in do_build
...
Always error out if the source services execution failed (the old
code only errored out if the local_service_run config option was
set (this behavior was probably unintentionally introduced in commit
d3dd8539d9
('- fallback to "build
--local-package" if it does not exist instead of complaining'))).
Also, do not suppress all exceptions (if something failed in the
services execution code path, the user should be informed).
The bug was reported by darix.
2019-02-22 15:42:23 +01:00
lethliel
0ab8661a8b
reworked deleterequest commit (add --all)
...
* removed superfluous parenthesis
* switched package == None to package is None
2019-02-04 14:56:20 +01:00
Marco Strigl
4b4774872e
Merge pull request #509 from adrianschroeter/deletereq
...
deleterequest for entire projects needs the --recursive option as add…
2019-02-04 14:52:25 +01:00
a760e2bd39
Return exitcode when "osc results" is falling through prjresults
...
Otherwise a failure from osc prjresults does not propagate
up.
2019-02-04 13:07:59 +01:00
677c741189
deleterequest for entire projects needs the --all option as additional protection
...
We had it two times this week that people dropped entire projects
(important ones)
2019-02-04 11:54:03 +01:00
Marcus Huewe
fefd7c1dea
Move vc env exporting code into core.vc_export_env
...
This allows for reuse. In the future, these variables should also
be exported when executing source services.
2019-01-29 14:20:12 +01:00
lethliel
93d15fc83b
reworked meter.py based on discussion
...
* new function create_text_meter with fallback selection
* NoPBTextMeter.start() will print the basename (if not stated otherise with
basename = None)
* The callers that should use an alternare TextMeter class now call create_text_meter()
* The callers that should not use and alternate TextMeter (because of different handling,
like build.py) call create_text_meter(use_pb_fallback=False)
* the warning 'Please install the progressbar module' is now only shown once
improvements
2019-01-16 11:39:40 +01:00
lethliel
8b3c2bd61a
improve handling of missing progressbar module
...
With the NoPBTextMeter class the build view gets broken.
Old view:
1/11 (repo) filename
new view:
Please install the progressbar module...
Please install the progressbar module...
Please install the progressbar module...
With this commit the old behavior is restored.
The getbinaries call now lists the file he downloads instead of just
stating "Please install the progressbar module..." several times.
(but only if not called with the option quiet)
2019-01-11 10:16:02 +01:00
Andreas Schwab
51812b7e93
Don't crash if can_also_build does not contain hostarch
2019-01-04 19:39:18 +01:00
Marcus Huewe
aa88b6b795
Merge branch 'prjresults-watch' of https://github.com/JanZerebecki/osc
...
Add "--watch" option to "osc prjresults" ("--watch" can only be used
in combination with "--xml").
2018-11-06 16:44:50 +01:00
5e03ffcec9
Add --watch for osc prjresults --xml
...
Like: osc results --watch
2018-11-06 15:13:08 +01:00
Marcus Huewe
e5478e2ff6
Merge branch 'release-no-delay' of https://github.com/JanZerebecki/osc
...
Add --no-delay option to the "osc release" command.
2018-11-01 20:07:57 +01:00
Marcus Huewe
d5dd5708d5
Merge branch 'add_alternative_project_to_buildinfo' of https://github.com/lethliel/osc
...
Add --alternative-project option to the "osc buildinfo" command.
2018-11-01 20:04:04 +01:00
Marcus Huewe
bec52a7917
Merge branch 'python3_prep' of https://github.com/lethliel/osc
...
Get rid of the urlgrabber dependency. The current implementation of the
progress bar is quite "noisy" if the line length exceeds the size of
the terminal window, but that's something we could fix later. (The
superfluous error message will be fixed in a subsequent commit.)
2018-11-01 19:55:07 +01:00
63e2ac20ed
Remove reference to non existing documentation
...
The release management chapter in the OBS book is no where to be found.
Resolves: https://github.com/openSUSE/osc/issues/458
2018-10-31 14:22:11 +01:00
fb80026651
Add --no-delay for osc release
...
This is useful so one can wait with a following osc prjresult until
everything done. Without this one can not know if a release job hasn't
started yet or is already finished.
2018-10-31 03:45:17 +01:00
1fab61c875
Fix help for osc token
2018-10-25 10:20:16 +02:00
Marco Strigl
92d15b2d95
add --alternative-project option to buildinfo
...
to be consistent with osc build
2018-10-23 20:27:43 +02:00
lethliel
65b053abb3
replace urlgrabber to enable python3 compatibility
...
- new module grabber.py
* OscMirrorGroup to keep urlgrabber.mirrorgroup behavior
* OscFileGrabber moved here
- meter.py
* reworked to use progressbar module instead of progressbar
of urlgrabber and simplified the module.
- babysitter.py
* removed URLGrabErrorr
- build.py
* removed adding of url_local to urllist. (not needed anymore)
* removed URLGrabError
- commandline.py
* switched from urlgrabber.urlgrab to OscFileGrabber().urlgrab
- core.py
* reworked progressbar behavior
- fetch.py
* removed join_url (not needed anymore)
* moved OscFileGrabber to grabber.py
* removed failureReport (not needed anymore)
2018-10-19 09:31:37 +02:00
Marcus Huewe
f12c7747d0
Merge branch 'approver' of https://github.com/adrianschroeter/osc
...
Introduce "osc request approval..." and "osc request cancelapproval"
commands.
2018-10-18 15:23:06 +02:00
e1fd0b4ee9
add support for approved requests (requires OBS 2.10)
2018-10-18 13:26:39 +02:00
Marcus Huewe
25014c326f
Merge branch 'fix_413_get_deleted_sources' of https://github.com/lethliel/osc
...
Introduce --deleted option to "osc co" for checking out the files of
a deleted package (no package wc is established).
2018-10-18 12:59:55 +02:00
lethliel
0123bb71db
fixes 413 checkout deleted package
...
* altered command do_checkout
new option -D | --deleted. Can only be used with PACKAGE and needs
-o to work
* what happens:
core function checkout_deleted_package fetches the file list of the deleted
package and saves it to given destdir. If destdir is not existent it
creates the destination directory. Otherwise the files will be written
in the existing directory.
2018-10-18 08:59:05 +02:00
c5ec3ce807
support checkconstraints command without local checkout
2018-10-02 10:45:38 +02:00
lethliel
f643e37eb1
print error and exit if p.apiurl != -A <apiurl>
...
Print error and exit if osc -A <apiurl> sr is issued on a
package with a different apiurl in its working copy. This leads
to unexpected behavior, because the SR is created for the package
apiurl, not the apiurl given by the -A command line option.
2018-09-25 13:48:09 +02:00
Johannes Kastl
ba66a0bc1d
change keep-link description to make it easier to understand
2018-09-17 20:50:27 +02:00
Marco Strigl
48e71b0255
Merge pull request #438 from andreas-schwab/token
...
Clarify use of osc token
2018-08-31 11:16:04 +02:00
Marcus Huewe
86e5757832
Refactor the do_vc code a bit
...
No functional changes.
2018-08-17 22:45:28 +02:00
Andreas Schwab
4eae5d9a45
Clarify use of osc token
...
Clarify the fact that the parameters of osc token -t and osc token -d are
of different types.
2018-08-12 13:36:24 +02:00
ef13d67208
Export a real name for vc to consume
2018-08-01 09:43:14 -04:00
4cc87b2c57
fix DISTURL checkout for package containers using a multibuild flavor
2018-06-27 10:25:45 +02:00
jonsger
6bd8572cf7
Fix typo in "osc revert" help
2018-05-03 16:16:38 +02:00
bfcfddb0da
fix some commands when used with / syntax between arguments
2018-04-27 14:41:08 +02:00
628f7e2cf5
- support "addcontainers" command
2018-04-27 09:16:13 +02:00
lethliel
eb2647fd4f
fix order of options valdiation. Now -P and -p is
...
honored if given by user.
2018-04-18 16:04:06 +02:00
fba9af7eee
add new options to diff command:
...
--unexpand for local diffs only (bsc#1089025)
--meta for diffing meta files
2018-04-11 08:01:45 +02:00
Marcus Huewe
5341f3aae5
Merge branch 'fix_dod_get_binaries' of https://github.com/lethliel/osc
...
Support dod binaries in core.get_binarylist.
2018-03-14 14:06:13 +01:00
lethliel
9b42897413
fix getbinaries with DOD binaries
...
getbinaries of dod binaries do not have a size or mtime.
This will break. So just set to None and print unkown instead.
2018-03-14 13:45:38 +01:00
Marcus Huewe
a25209ac31
Merge branch 'improve_created_binaries_msg' of https://github.com/lethliel/osc
...
Improve message that is printed during "osc getbinaries...".
2018-03-13 15:16:12 +01:00
lethliel
e042c585c0
change output when creating binaries directory
...
was:
Creating binaries
is now:
Creating directory "binaries"
2018-03-13 15:00:46 +01:00
Björn Geuken
030c2a41f8
Fix typo in example for osc search
2018-02-18 21:27:22 +01:00
Marcus Huewe
8948a26ae4
Fix --multibuild-package option handling in do_sendsysrq
...
Concatenating a str and a list does not work.
2018-02-09 15:35:52 +01:00
7fc251d81e
fix sendsysrq command description
2018-02-09 10:08:13 +01:00
80352cbfc7
add sendsysrq command
2018-02-09 08:50:21 +01:00
Marcus Huewe
9c4f0d5d30
Ignore "--alternative-project <prj>" if it is equal to the wc's project
...
Without this change, using "--alternative-project <prj>" in combination
with "--multibuild-package <flavor>" yields to unexpected results (from
a user's point of view). Note that this may break existing (artificial)
workflows (e.g., using --alternative-project to ignore the package
meta's debuginfo flag), but these workflows should be rare and there
are options to achieve the same.
Fixes : #376 ("osc build -M something does not work with
--alternative-project")
2018-02-07 14:35:35 +01:00
Andreas Schwab
50222810f0
osc chroot: also mount devpts
...
This is needed for running expect, for example.
2018-01-28 16:53:52 +01:00
Marco Strigl
2405134cbf
fixes not working osc maintainer <prj>
...
The retrun at this point breaks the call, because in most
cases <prj> is not a binary. And the code always checks for the
binary first and then returns if no binary with the name <prj>
is found.
2018-01-11 11:57:22 +01:00
Marcus Huewe
b1d6d8347b
Fix "osc buildinfo --prefer-pkgs <dir>..." (finally!)
...
This is a follow-up commit for commit ce9a6d0
("Fixed
\"osc buildinfo --prefer-pkgs...\"").
2017-12-06 18:04:30 +01:00
Marcus Huewe
9116d8ff97
Support expansion/unexpansion of a link when updating to certain rev
...
There is no good reason why "--revision <rev>" and "--expand-link" or
"--revision <rev>" and "--unexpand-link" should be mutually exclusive
during an "osc up" of a package wc.
Introduce the new "--linkrev <rev>" option to specify a rev of the link
target that is used during link expansion.
2017-12-03 16:45:36 +01:00
Marcus Huewe
5791d1bb5c
Merge branch 'mount_sysfs' of https://github.com/lethliel/osc
...
Mount sysfs during "osc chroot". The current implementation
of "osc chroot" is a major pain for plain "su" users, because the
root password has to be entered several times - we should fix this.
Fixes : #354 ("Mount sysfs in chroot")
2017-11-21 12:34:15 +01:00
lethliel
00b6a9fe27
in chroot also mount /sys in addition to proc
2017-11-21 10:52:40 +01:00
Marcus Huewe
0f9ab38948
Merge branch 'fix_#351' of https://github.com/lethliel/osc
...
Fix logic for finding disabled repos in do_repositories.
Fixes : #351 ("Not all options for osc getbinaries is listed")
2017-11-09 11:56:36 +01:00
marco
12b17cfc5d
consider arch when checking the disabled repos
...
At the moment just repo.name is considered. So if
the repo is disabled for s390 all other repo / arch
combination are not shown in the repo list.
To be able to change this r is now a list of dicts
containing the name and arch of the disabled repo.
None for repo if a complete arch gets disabled
None for arch if a complete repo gets disabled
2017-11-08 14:02:20 +01:00
Marcus Huewe
cb376a1a34
Merge branch 'config_replace_issue_313' of https://github.com/lethliel/osc
...
Store a newly created config file in $XDG_CONFIG_HOME/osc/. For backward
compatibility, ~/.oscrc is used, if present.
Fixes : #313 ("oscrc should be stored in $XDG_CONFIG_HOME on linux")
2017-11-08 12:23:07 +01:00
marco
6bc2d3f939
use XDG_CONFIG_HOME/osc/oscrc as default config
...
write oscrc to the default location for user-specific configuration.
If XDG_CONFIG_HOME is not set use ~/.config/osc/oscrc which is basically the same.
If there is already a ~/.oscrc use this one (for compat reasons). Existing user
installations should not get affected by this commit.
The order is the following:
Given config with -c
config defined in OSC_CONFIG
existing ~/.oscrc
default XDG_CONFIG_HOME/osc/oscrc
2017-11-08 11:17:11 +01:00
690dbf42ab
Small documentation fix to clarify attribute usage.
2017-11-08 10:55:38 +01:00
Marcus Huewe
760d4d65d7
Supersede existing requests if --yes is passed to "osc sr"
...
This basically reverts commit b2b59ca
, because the old code performed
a "no" instead of a "yes" (see also the discussion in
https://github.com/openSUSE/osc/pull/269 ).
Fixes : #343 ("'osc sr --yes ...' doesn't supersede existing requests
as promised")
2017-10-06 12:32:52 +02:00
Marcus Huewe
aea395a7e7
Document 'R' (replaced) file state
...
Fixes : #336 ("Missing explanation for status 'R'")
2017-10-03 22:05:41 +02:00
Marcus Huewe
f52cf7745a
Take --repo/--arch options in "osc prjresults --xml..." into account
...
Fixes : #341 ("prjresults doesn't support repo/arch options")
2017-09-28 15:55:11 +02:00
Marcus Huewe
2d327df4e7
Allow multiple --repo and --arch options in "osc prjresults"
...
This harmonizes "osc prjresults --help" with osc's actual behavior.
Also, core.get_prj_results expects lists (or None) instead of strings
for the corresponding repo/arch parameters.
2017-09-28 15:29:48 +02:00
Marcus Huewe
b07ba53ad0
Allow slash separated arguments in "osc rpmlintlog"
2017-09-01 10:51:28 +02:00
Marcus Huewe
38af00d509
Merge branch 'rpmlint' of https://github.com/lethliel/osc
...
Add new "osc rpmlint" command to retrieve the rpmlint.log file (if
present).
2017-09-01 10:49:16 +02:00
marco
99309db315
show rpmlint.log
...
Provide function to show the content of rpmlint.log.
The core function get_rpmlint_log will later be used in the interactive
request mode to provide the rpmlint logs to the reviewer.
I add the osc rpmlint | rpmlintlog | lint command also.
2017-09-01 10:27:05 +02:00
Marcus Huewe
c2a4d14c42
Merge branch 'patch-2' of https://github.com/jnweiger/osc
...
Fix UnboundLocalError in do_submitrequest.
2017-09-01 09:45:35 +02:00
Jürgen Weigert
2e6c838d66
submitreq entire project fix
...
`osc submitreq TARGETPROJ`
bails out with unbound variable t. This is true. the variable should be target_project.
2017-08-31 14:58:22 +02:00
3a41ae64f0
osc tr: show the time when the event happened
2017-08-31 13:57:21 +02:00
Marcus Huewe
28368ecd4a
Document possible action types for "osc rq --type <TYPE>"
...
The "group" action type is omitted on purpose, because it is not/was
never supported.
2017-08-24 12:14:25 +02:00
Marcus Huewe
1c21c67659
Do not ignore --type parameter in "osc review list --type..."
...
There is no reason why we should ignore the --type parameter in this
case.
2017-08-24 12:01:56 +02:00
marco
10e6619250
renamed get_group to get_group_meta.
2017-08-21 10:37:07 +02:00
Marcus Huewe
8746ea7ee3
Merge branch 'meta_group' of https://github.com/lethliel/osc
...
Add "group" subcommand to "osc meta".
2017-08-18 15:42:27 +02:00
marco
a261c73cce
add meta group function to edit / show group meta
2017-08-18 15:32:27 +02:00
Marcus Huewe
1524214060
Merge branch 'add_package_filter' of https://github.com/lethliel/osc
...
Add --target-package-filter option to do_request.
2017-08-17 10:34:41 +02:00
marco
af8b1e77f7
add --target-package-filter option to osc review
...
This will filter the requests you get to review based on
the tgt_package in the action element (if not action type is 'group').
This helps reviewers who want to just review a subset of requests or
do _not_ want to review some packages.
Examples:
osc review list --interactive --target-package-filter='^python.*' -G opensuse-review-team
osc review list --interactive --target-package-filter='^(?!ghc).*' -G opensuse-review-team
2017-08-17 10:14:02 +02:00
Marcus Huewe
d126d07787
Fix typo in docstr of do_triggerreason
...
The command is called "triggerreason" instead of "reason".
2017-08-15 16:39:32 +02:00
marco
ad6b9cfd0a
added -M switch to osc triggerreason
2017-08-15 15:18:41 +02:00
Marcus Huewe
853ab4f758
Fix computation of files dict in Osc._commit
...
The old implementation was unable to commit specific files from
packages, which have the same name, but belong to different projects.
2017-08-04 14:48:01 +02:00
Marcus Huewe
194d179e66
CLI part for committing a deleted, but non-existent package
...
That is, a package which has state 'D', but its package working
copy does not exist anymore.
2017-08-04 14:19:22 +02:00
Marcus Huewe
8ce386c76a
Remove all untracked files during "osc clean"
...
Now we also take files into account that match the "exclude_glob"
config option. The new behavior is consistent with the command's
description.
2017-08-03 17:21:20 +02:00
Marcus Huewe
c2fc655557
Merge branch 'fix_chroot_procfs' of https://github.com/lethliel/osc
...
Mount proc during "osc chroot". Eventually, we should implement
"osc chroot" via the obs-build script.
2017-07-31 16:28:52 +02:00
Marco Strigl
5726c66335
implented signal handler to umount proc
2017-07-31 14:41:45 +02:00
Dimitris Karakasilis
b6c064cf40
Fix typos "fissile.ymp" -> "fissile.yml"
2017-07-25 16:06:04 +03:00
Michael Schroeder
e6d492ee38
Support 'fissile' build type
2017-07-21 10:58:52 +02:00
af5a38f4c8
Add compatibility with Debian's obs-build
...
In Debian and Ubuntu build is renamed to obs-build for disambiguation
purposes.
Add a simple check to use the correct paths if running on Debian and
use /usr/bin/obs-build and /usr/lib/obs-build if so.
2017-07-07 17:47:43 +01:00
Ludwig Nussel
c941a02c73
Allow requesting maintainership for group and project
...
Useful e.g. for factory-maintainers
2017-07-02 15:59:45 +02:00
Marcus Huewe
ffe68fd9f4
Check whether project_dir points to a project wc (in do_importsrcpkg)
...
If we abort early, the user gets a more meaningful error message.
Fixes : #301 ("Inconsistent working copy")
2017-06-29 14:11:27 +02:00
a8612f4ecc
Allow to cat/less files from deleted packages
2017-06-24 14:25:05 +02:00
Marcus Huewe
5d480fd370
Merge branch 'rdiff_issues_only' of https://github.com/lethliel/osc
...
Add --issues-only option to the rdiff command.
2017-05-28 19:23:34 +02:00
Marcus Huewe
e809cc8ef1
Merge branch 'fixparam' of https://github.com/bmwiedemann/osc
...
Fixes metvars in some help texts.
2017-05-17 23:43:14 +02:00
Marcus Huewe
900ee88bfa
Fix "osc results --xml..."
...
For now, "osc results --xml..." ignores the "--show-excluded" option
(that's what we did in the past).
Fixes: PR#297 ("results --xml causes a stack trace")
2017-05-17 23:35:07 +02:00
Michael Schroeder
8bffeb70e5
Support docker builds
2017-05-16 11:14:52 +02:00
Marco Strigl
fa5c97971e
added switch to show only issues in rdiff
2017-05-11 09:22:42 +02:00
Marcus Huewe
d5393481cb
Merge branch 'buildopt' of https://github.com/bmwiedemann/osc
...
Adds a "--build-opt" option to "osc build" in order to pass
arbitrary options to the build script.
2017-04-26 00:24:48 +02:00
efbd032da9
fix wipebinaries
...
don't do a second wipe all after doing the intended wipe by a filter.
Eg: osc wipebinaries home:adrianSuSE -r standard -a i586 --build-disabled
wiped first --build-disabled only, but did a second wipe all afterwards
2017-04-24 16:35:15 +02:00
Bernhard M. Wiedemann
f4771ce67a
allow to pass any option to the build command
...
so that we do not have to patch osc for every parameter added to build
e.g. "--vm-custom-opt" in my case
similar in nature to gcc'c -Wl, option
2017-04-19 15:33:08 +02:00
Bernhard M. Wiedemann
eb25d6dfce
use proper placeholder strings in help text
2017-04-19 15:27:23 +02:00
a059629e74
Fix inconsistency of request/review list -U vs -G
...
"osc review/request list" using -G did added the local project as target
project filter unlike -U. (If local work dir is a check out)
2017-04-18 09:12:48 +02:00
Marcus Huewe
d68507fa95
Drop Request.get_creator method in favor of a new "creator" attribute
...
This implements the Request api change that was proposed in commit
6965dc5
("Adjust request testcases to the upcoming Request api
change").
Fixes : #286 ("get_creator() does not return request creator")
2017-04-12 12:58:23 +02:00
Marcus Huewe
a271a33a53
Merge branch 'fix_issue_#236' of https://github.com/lethliel/osc
...
Fixes --no-cleanup in combination with --separate-requests
2017-04-11 12:41:24 +02:00
Marco Strigl
2e76f91980
fixes issue #236
2017-04-11 11:38:47 +02:00
Marco Strigl
055f577c6b
filter excluded repos for package by default
2017-04-07 11:13:20 +02:00
Marcus Huewe
3397acc756
Try to autodetect a local package when running "osc build"
...
Note that this detection might fail... in the this case osc will
eventually error out and suggest to rerun with "--local-package".
2017-03-31 15:51:08 +02:00
Marcus Huewe
7a4f7b0b9d
Fix typo in "service runall" docs and list the "service runall" command
2017-03-31 10:34:52 +02:00
Marcus Huewe
ae591a82fc
Document deprecated "service disabledrun" and "service localrun" commands
...
Fixes : #282 ("service disabledrun is not documented")
2017-03-31 10:32:55 +02:00
Marco Strigl
678c79224c
added --blame switch to osc meta command
2017-03-22 08:32:05 +01:00
6b91b282b8
cat/less/blame command: default to expand to stay in sync with checkout
...
this allows us also to drop the nasty fallback code
2017-03-14 19:02:01 +01:00
Ludwig Nussel
8f175484f7
Add plugin directory to search path
...
Some osc plugins ship with extra modules that are not globally installed
as python modules. So expand search path.
2017-03-14 13:39:04 +01:00
ccafb430b8
support operation in checked out package for cat/less/blame
2017-03-07 15:07:44 +01:00
Marcus Huewe
0d79510fa0
Merge branch 'comment_command_integration' of https://github.com/lethliel/osc
...
New "comment" command.
2017-03-07 13:32:19 +01:00
Marco Strigl
68f10bdb14
integrated comments command
2017-03-07 08:42:21 +01:00
Felix Zhang
f8e61cfd28
Add missing whitespaces in commandline options
2017-03-07 10:30:30 +08:00
008a6009f8
add blame command
2017-03-02 16:05:48 +01:00
Marcus Huewe
e324a36b41
Merge branch 'token_syntax_verify' of https://github.com/lethliel/osc
...
Bail in some cases if wrong args were supplied
2017-03-02 10:37:58 +01:00
Marco Strigl
d49c741b0d
added syntax check if no token opt is set
2017-03-02 09:02:19 +01:00
Oliver Kurz
7f985cf874
Fix outdated doc URL to maintenance setup
2017-02-23 16:02:09 +01:00
Marcus Huewe
8c82243ad5
Merge branch 'fix-sr-yes' of https://github.com/srinidhibs/osc
...
Add missing check for opts.yes to do_submitrequest.
2017-02-22 20:02:16 +01:00
Marcus Huewe
74e397b12c
Merge branch 'multibuild' of https://github.com/lethliel/osc
...
Adds a "--multibuild-package" option to the following commands:
buildlog, remotebuildlog, buildinfo, build, buildhistory, jobhistory,
rebuild, restartbuild/abortbuild, wipebinaries, getbinaries
2017-02-20 19:47:19 +01:00
B S Srinidhi
b2b59ca929
- Fix handling of "--yes" argument to "osc sr"
2017-02-20 14:01:55 +05:30
Marco Strigl
2969c9c52e
added multibuild switch (-M) to commands
2017-02-17 11:53:14 +01:00
Marcus Huewe
8efcb0b14d
Fix ret code in do_list in case of a non-existent file
2017-02-13 21:45:16 +01:00
Marcus Huewe
025ececfdc
Merge branch 'recipe_type_guessing' of https://github.com/lethliel/osc
2017-02-02 12:52:49 +01:00
Marco Strigl
b16f1c9c90
improved build recipe guessing
2017-02-02 12:25:43 +01:00
Marcus Huewe
b0d905aa38
Print error for a failed service run in do_submitrequest
...
Additionally, we do not treat a "running" service run as an
error (the api will complain, if it is still running).
2017-01-31 23:35:43 +01:00
885dd3fecd
show build results of multibuild packages by default
...
Be in sync with webui. Also it is assumed that a user wants to see
all build results of the source change he did and not only for a subset.
2017-01-17 17:16:00 +01:00
943a53d4d8
add unpublish command
2017-01-16 11:58:02 +01:00
Marcus Huewe
4c39b63162
Fix "osc results --csv ..."
...
Follow-up fix for commit 665d2bda72
.
Fixes https://github.com/openSUSE/open-build-service/issues/2548
2017-01-12 15:33:26 +01:00
Marco Strigl
4893049312
added commands for constraints/worker checking
2016-12-30 14:10:35 +01:00
Andreas Schwab
c5a7d266fb
Respect repository and arch arguments in restartbuild
2016-12-18 16:04:34 +01:00
Marcus Huewe
1c03e32a57
Merge branch 'add_multibuild_to_results' of https://github.com/lethliel/osc
2016-12-13 16:49:56 +01:00
Marco Strigl
665d2bda72
added support for multibuild / locallink feature
...
new option -m shows all subpackages and results of the subpackages.
2016-12-13 14:43:36 +01:00
1cb3f9eed5
Add '--vm-memory' option to osc build
2016-11-29 09:07:20 +01:00
Hemmo Nieminen
613e7b1a95
Alter osc update operation's default behaviour.
...
Make update operation behave as checkout does and do not checkout linked
packages from the same project (by default) during a project wide update.
2016-11-16 10:12:12 +02:00
Marcus Huewe
7be66bc57a
Adjust error message in do_getbinaries
...
This is a follow-up change for commit f7918fcc10
.
2016-11-15 14:06:33 +01:00
Marcus Huewe
e4d6e06e1c
Merge branch 'getbinaries-project' of https://github.com/Ericsson/osc
2016-11-15 14:05:51 +01:00
Matias Hilden
82dbd10af2
Ignore build descr directory in build-root substitution for local packages
...
If build-root contains %(package) substitution, --local-package builds
would substitute absolute path there. This is different than the rule used
in osc chroot (uses relative path), causing the chroot to fail by default.
This commit removes the directory part from both build-root substitutions.
2016-11-14 13:48:06 +02:00
Hemmo Nieminen
f7918fcc10
Support downloading a project's binaries from a non-checkout directory.
2016-11-11 16:17:39 +02:00
2befb71663
allow to specify a log message in lock command
2016-11-03 08:41:56 +01:00
Marcus Huewe
9800a7a706
do_wipe: replaced sys.stdout.write calls with print calls
2016-10-31 19:32:08 +01:00
Marcus Huewe
06120b3323
Merge branch 'add-wipe-subcommand' of https://github.com/Ericsson/osc
2016-10-27 18:32:34 +02:00
Matias Hilden
dd4675096a
Add '--wipe' option to osc chroot for deleting buildroots
...
Co-Author: Juha Kallioinen <juha.kallioinen@ericsson.com>
2016-10-27 09:05:35 -07:00
Marcus Huewe
b4d4d3c027
do_vc: don't contact the api if the "email" config option is set
2016-09-23 16:37:23 +02:00
Marcus Huewe
2816f325ca
Fix logic error in do_my
...
A dict doesn't work here (however, this codepath shouldn't be reached at
all).
2016-09-13 12:39:24 +02:00
Marcus Huewe
e9cc000987
Fix non-existent user handling in do_my/get_user_projpkgs_request_list
...
This fixes the issue reported in PR #227 .
2016-09-13 12:34:48 +02:00
Marcus Huewe
3b1409fd33
Sigh... fix error message
2016-09-09 13:23:55 +02:00
Marcus Huewe
008c456942
Removed debug output
...
Introduced in commit 2953d65220
.
2016-09-09 13:22:40 +02:00
Marcus Huewe
2953d65220
Hint to the --noservice option in do_commit in case of a missing service
...
Also, this simplifies the service related error handling in do_commit/_commit
a bit.
2016-09-09 13:20:15 +02:00
Marcus Huewe
8e7189b391
Restore support for "osc add prj/dir"
...
This is used to turn "dir" into a package and add it to the version
control (got broken in commit b6f7d1be6c
).
Integrated the obscpio code that was introduced in commit
b6f7d1be6c
into core.addFiles (XXX: we
should get rid of the run_external(..., shell=True) code).
2016-08-26 17:12:09 +02:00
Marcus Huewe
b5679dee81
Introduced wrongly spelled "--seperate-requests" option again
...
Just for backward compatibility - will be removed in the
future. See commit b9a53e3527
.
2016-08-17 01:43:19 +02:00
Jim McDonough
b9a53e3527
Fix spelling of --separate-requests
2016-08-16 11:40:34 -04:00
dd1228c872
fix reading of local package directory in release command (osc#218)
2016-08-02 14:09:18 +02:00
Marcus Huewe
58adc14dd4
Merge branch 'fix_osc_co_outdir_project' of https://github.com/Ericsson/osc
2016-07-08 11:48:52 +02:00
Bernhard M. Wiedemann
1ef4449e80
mention "key" in no-verify help text
...
to make it easier to find with
man osc | grep key
2016-07-05 17:11:48 +02:00
Esa Kulmala
c4e4064778
fixed output dir handling for osc checkout <project>
2016-06-30 09:51:48 +03:00
b6f7d1be6c
explicit "osc add" of a directory offers to create an archive for uploading it
...
Question: what can be a trigger to update it?
checking for mtimes in directories where an .obscpio exists?
2016-06-30 08:19:23 +02:00
Marcus Huewe
30213d0da4
Merge branch 'fix-obsolete' of https://github.com/sebix/osc
2016-06-17 09:17:24 +02:00
Sebastian Wagner
61ddf8542e
Unify obsolete warnings for commandline
...
Signed-off-by: Sebastian Wagner <sebix@sebix.at>
2016-06-16 23:53:07 +02:00
Michael Schroeder
55da852a90
Add support for preinstall iamges
...
Adapted from a submission from Ericsson by Esa Kulmala, thanks a lot!
2016-06-09 16:24:30 +02:00
37990f48b2
add "osc service runall"
...
This is up for discussion, but I try to simplify the interface here:
- obsolete "localrun" and "disabledrun". Still implemented, but not anymore
recommended and documented. can hopefully removed later.
- "runall" is running all services local, also buildtime services
- files get replaced by the service
- can be used to get final tar balls to be used with tools like quilt
2016-06-08 09:17:15 +02:00
015ab4cd40
Merge pull request #208 from b1-systems/project_meta_revision_ctrl
...
Add revision control options to meta project commands
2016-06-08 09:10:21 +02:00
Karsten Keil
fca93a8b60
Add revision control options to meta project commands
2016-06-02 08:23:47 +02:00
28c12686b9
add "osc service runall"
...
This is up for discussion, but I try to simplify the interface here:
- obsolete "localrun" and "disabledrun". Still implemented, but not anymore
recommended and documented. can hopefully removed later.
- "runall" is running all services local, also buildtime services
- files get replaced by the service
- can be used to get final tar balls to be used with tools like quilt
2016-06-01 17:10:31 +02:00
Marcus Huewe
ce9a6d0f46
Fixed "osc buildinfo --prefer-pkgs..."
...
Was broken since ages (literally!)...
(see commit d5b795a02b
).
2016-04-14 16:25:48 +02:00
Marcus Huewe
c5f56e7f6c
- fixed boo#896633
2016-03-19 22:01:52 +01:00
aa74e98fb3
add new service commands (merge and wait)
2016-03-04 08:37:33 +01:00
Nelson Manuel Marques
72c2bd7cfd
FIX https://github.com/openSUSE/open-build-service/issues/1591
2016-03-02 17:47:22 +00:00
779c7763cc
add repository strategy options to branch command
2016-03-02 17:13:11 +01:00
d4336dc19a
- print created submit request ID before handling supersedes
...
So it is printed even when something goes wrong with superseding (boo#966731)
2016-02-15 15:32:26 +01:00
Marcus Huewe
e8783d2501
- introduced new "request_show_source_buildstatus" config option
...
If enabled, it always shows the source buildstatus during
"osc rq show <id>" or "osc rq list --interactive". By default, it is
disabled.
2016-02-10 18:27:35 +01:00
Marcus Huewe
add34d65cb
- support --source-buildstatus during interactive review
2016-02-10 18:19:22 +01:00
Marcus Huewe
75f6b3fbc1
- do_status: "cluster" package states in the output
...
This only affects "osc st" in a prj wc.
2016-02-10 13:54:24 +01:00
Marcus Huewe
d646915c04
- allow to directly expand a non-link during "osc up -e"
2016-02-08 17:24:35 +01:00
Marcus Huewe
f3a1d12a96
- refactored package result code a bit ( fixes #180 )
...
Note: this commit "breaks" the existing get_package_results api, because
it returns a generator, which yields a result xml, instead of a list of
result dicts.
2016-02-07 00:55:23 +01:00
Marcus Huewe
51ccd6741c
- use atime instead of mtime when guessing the repo arch
...
atime is more reasonable (e.g. in case of an offline build).
2016-02-05 16:11:11 +01:00
Marcus Huewe
5d068b091a
- do_buildlog: support "osc bl repo"
...
In this case, "osc bl repo" behaves more or less the same as "osc rbl repo"
(in case no corresponding .osc/_buildinfo file exists, we default to
repo and hostarch).
2016-02-05 16:10:43 +01:00
Marcus Huewe
8a78be684e
- removed broken "install" command from the ui
...
The command was hidden since 2009 (so there shouldn't be much breakages).
This also fixes #185 .
2016-02-05 11:56:22 +01:00
b40d856e67
add --limit option to buildhistory
2015-12-07 10:05:08 +01:00
25118ceccc
- support --vm-telnet option for KVM builds
...
latest build package is required.
2015-11-25 14:20:55 +01:00
Johannes Lahti
a364a4c456
Added missing localrun help text to do_service
2015-11-12 10:37:03 +02:00
Egbert Eich
f17bef21e5
Make '-o' option work also when checking out complete projects
...
Signed-off-by: Egbert Eich <eich@freedesktop.org>
2015-11-10 16:43:33 +01:00
Egbert Eich
43ffb9f3ac
maintenancerequest: simplify sytnax to create request for single package
...
The syntax to create a maintnancerequest for a single currently package
is:
osc mr SOURCEPROJECT SOURCEPACKAGES RELEASEPROJECT
which means that the source project, the package name and the release
project have to be specified on the command line.
Often times the workflow is such that the user will already be inside
of the subdirectory containing the checked out package.
To simplify the submission when the user is in a package subdirectory
this patch adds the syntax:
osc mr .
to indicate that the source project and source target is to be taken
from the meta information in this package directory.
Signed-off-by: Egbert Eich <eich@freedesktop.org>
2015-11-10 16:38:41 +01:00
df9c3000b0
- add --linkrev option to branch command
2015-10-23 11:08:30 +02:00
e9766d5d5b
- seperate add and enable channel command for better command description
...
- adapt to new api mode handling
2015-10-22 09:40:09 +02:00
Marcus Huewe
dc32cde545
- do_request: also print comments when running "osc rq show <reqid>"
...
Fixes #171 .
2015-10-19 13:14:53 +02:00
Marcus Huewe
400352c61e
- do_branch: do not checkout server service files if "--checkout" is specified
...
Otherwise one has to checkout the expanded sources without the
server service files before doing a commit.
2015-10-03 22:24:58 +02:00
Marcus Huewe
cc3979cc7f
- do_maintenancerequest: fixed TypeError ("'NoneType' object is not iterable")
...
Broken since commit ba7e20bcd1
.
2015-09-24 18:25:22 +02:00
4342d9a6e1
Correction of grammatical errors
...
"exists" is a Python keyword, and wrong outside the 3rd person
singular in English.
2015-09-16 10:17:15 +02:00
5d6882e0e1
Collax support
2015-09-10 11:35:27 +02:00
7bb0c4b730
fix extra parameters for manual release as wanted by api
2015-09-07 12:39:15 +02:00
0b34cb4567
- fix enable channel logic for given channel package
2015-09-04 11:10:20 +02:00
3b203e67a9
Merge pull request #148 from lnussel/master
...
allow force commit
2015-08-13 07:50:58 +02:00
ba7e20bcd1
- maintenance request offers to supersede old, but still open requests
...
bnc#940731
2015-08-07 10:17:40 +02:00
Marcus Huewe
e435a84440
- made "osc rq <prj> <pkg>" output more precise, in case of no results
2015-08-04 12:51:45 +02:00
f7cfe4cdc8
- fix search of requests "I" created. fixes obs#1002
...
This is using the request collection api call now instead of xpath query.
More searches should be adapted similar most likely.
"osc my sr" is not a good name for this since it is not limited to
submit actions. But "osc my rq" is used for incoming requests.
2015-07-29 11:05:05 +02:00
083f23f77b
support new package instances on branching when using -N parameter
2015-07-21 13:03:07 +02:00
Marcus Huewe
e9d7ac9c82
- do_addchannels: handle wrong args more gracefully
2015-07-15 20:46:38 +02:00
Marcus Huewe
0daec6a5f1
- do_addchannels: cleanup and beautify
...
No changes w.r.t. to semantics.
2015-07-15 20:43:09 +02:00
569efcace8
- make the enablechannels command also working for entire project
2015-07-15 15:22:26 +02:00
76023d5643
add "addchannels" and "enablechannel" commands
2015-07-14 16:03:35 +02:00
cf9d65b09d
- do not hide api side error message
2015-07-01 09:47:53 +02:00
Marcus Huewe
cbdc1389db
- do_repourls: do not hardcode the download_url
...
Instead ask the api for the download_url configuration element.
2015-06-29 23:59:59 +02:00
caef99c3d9
- allow diffing of maintenance requests
2015-06-11 11:05:08 +02:00
1509db3ff1
- allow to use "osc chroot" also with lxc build-type
2015-06-09 17:26:57 +02:00
Marcus Huewe
4dc236dea4
- added "lock" command to lock a project or package
2015-05-30 16:27:54 +02:00
Marcus Huewe
e4919568eb
- do_build: added --trust-all-projects option
...
--trust-all-projects can be used to disable the trusted project check
2015-05-05 23:39:58 +02:00
464652ab85
show possible used incident projects on "maintained" command
...
FATE#318944
2015-05-05 14:01:10 +02:00
Ludwig Nussel
826808d7cf
allow force commit
...
useful to workaround https://github.com/openSUSE/open-build-service/issues/913
2015-04-29 13:44:12 +02:00
Andreas Schwab
ab111f4204
- do_deleterequest: fix help text
2015-04-27 11:04:46 +02:00
6886a0d58c
- use "group:" prefix instead of "group/" like in other commands
2015-04-24 09:47:12 +02:00
Egbert Eich
95cfc2b96c
Add missing tags for maintainer/bugowner
...
This was missed in 9937cb9ddf
.
Signed-off-by: Egbert Eich <eich@suse.de>
2015-04-22 15:00:07 +02:00
Egbert Eich
9937cb9ddf
Add support for searches for groups with -i, -b and -m
...
Involved parties can be persons or groups; add support for those.
Signed-off-by: Egbert Eich <eich@suse.de>
2015-04-22 12:40:07 +02:00
Andreas Schwab
b7912a78dd
- do_buildhistory: split args on slash
2015-04-11 08:51:26 +02:00
e610cb569a
Merge pull request #138 from k0da/threads
...
Pass threads option to obs-build
2015-04-08 10:30:14 +02:00
Marcus Huewe
7116509330
- do_build: --noinit and --offline are _not_ mutually exclusive
...
Thanks to darix for the hint!
2015-03-10 15:49:35 +01:00
Dinar Valeev
e12f1b43c4
Pass threads option to obs-build
...
Currently --jobs sets only -smp flag for VM, in some cases we want
to pass threads as well. So the command line would like -smp 4,threads=4
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2015-03-10 11:58:08 +01:00
ecd76148b8
- add support for updating the link in target package in submit action
...
This is also changing the request format to post OBS 1.0, but
that was also the case before when a source update option was used.
2015-03-09 08:45:07 +01:00
Bernhard M. Wiedemann
00c7b9dbfc
fix typo in help message (bnc#918906)
...
https://bugzilla.opensuse.org/show_bug.cgi?id=918906
2015-02-21 08:49:56 +01:00
Marcus Huewe
8f5bf385be
- do_status: mention 'S' state in the help text
2015-01-21 03:01:29 +01:00
9cddc53afc
- add mr --release-project option for kgraft updates
2014-12-12 13:44:24 +01:00
Marcus Huewe
42d3e815c1
- do_status: mark a frozen package with an "F"
2014-11-21 16:12:26 +01:00
Marcus Huewe
930dfc1999
- parse_repoarchdescr: added openSUSE_Tumbleweed to the repository list
2014-11-17 10:12:35 +01:00
Marcus Huewe
ad92e8abb7
- fixed #122 ("osc chroot fails to use the osc build buildroot directory")
...
Renamed osc chroot's "--root" option to "--login-as-root" (kept the short
option "-r"). Added new "--root /path/to/buildroot" option (this is consistent
with "osc build --root...").
2014-11-14 15:54:55 +01:00
de702bb8ed
- follow the request order of the api (sorting according to priorization)
2014-11-11 08:26:17 +01:00
6a4423ff62
- better example for osc api -e
2014-10-31 14:14:06 +01:00
bb75ce34fd
- add "osc api --edit" option
2014-10-31 09:22:25 +01:00
Marcus Huewe
3e57d58729
- do_meta: fixed description (partly fixes #120 )
2014-10-27 01:31:47 +01:00
Marcus Huewe
27bdf6cbdd
- do_addremove: if a "deleted" file exists in the wc, track it again
2014-10-21 22:31:30 +02:00
Marcus Huewe
26ffaa9de8
- do_addremove: fixed "corner case"
...
Assume $PWD/x is a directory and /path/to/pkg/x is an unversioned file.
Without this fix, "osc ar /path/to/pkg" did not add the file "x".
2014-10-21 22:23:28 +02:00
Marcus Huewe
e8f0e78672
- do_addremove: use local variable instead of an attribute (cosmetic)
2014-10-21 22:15:54 +02:00
Marcus Huewe
a7c92eb18f
- do not hardcode path to the build scripts and removed legacy check
2014-10-01 14:45:48 +02:00
Adam Spiers
e1cdf86bdf
fix osc service exit code
...
Commands like "osc service disabledrun" would always return exitcode 0
even when the source service failed. This broke any scripts which
wrapped around osc service.
2014-09-30 12:51:13 +01:00
Marcus Huewe
603cf3b713
- fixed #113 ("osc creq -s ...")
2014-09-23 13:05:10 +02:00
Marcus Huewe
45bf1945d0
- do_createrequest: remove --diff option
...
This never worked and makes no sense (IMHO): use "osc request" for things
like that.
2014-09-23 12:45:44 +02:00
bd82e236ee
- display request priorities, if important or critical
...
- add "osc rq priorize" command to re-priorize existing requests
- allow also "osc rq ls" shortcut
2014-09-11 11:25:24 +02:00
3b6f7f1269
- make it possible to list by given review states
...
it used the state always for request and review state before, which makes no sense.
makes the code a bit nicer as well hopefully as well
2014-08-25 17:02:56 +02:00
3adb160e0f
support groups in maintainership requests
2014-08-19 14:34:18 +02:00
Marcus Huewe
b07a4d0b37
Merge branch 'w291' of https://github.com/berendt/osc
...
Conflicts:
osc/build.py
Resolved merge conflict.
2014-08-14 17:24:28 +02:00
Christian Berendt
1751bdc47f
Resolve PEP8 issue E231
...
* E231 missing whitespace after ':'
2014-08-13 17:30:12 +02:00
Christian Berendt
d35983d5b8
Resolve PEP8 issue W291
...
* W291 trailing whitespace
2014-08-12 15:01:16 +02:00
Ludwig Nussel
1b6e2ac745
support the ls expand option also for projects
...
packages of linked projects can be listed using the expand option
2014-08-11 17:06:18 +02:00
Marcus Huewe
902adde28b
- do_localbuildlog: support %(apihost)s in build-root config setting
2014-08-04 11:15:34 +02:00
Marcus Huewe
e9233a5eab
- parse_repoarchdescr: remove duplicates from repo_names
2014-07-21 14:32:54 +02:00
Marcus Huewe
e90a60a8c8
Merge branch 'livebuild' of https://github.com/jblunck/osc
2014-07-16 10:51:06 +02:00
Marcus Huewe
ea349d9ad0
- do_buildinfo: fixed "osc buildinfo -p <path>"
2014-07-15 20:38:19 +02:00
f8a1fa2ebc
- give a better hint to the user, when a search role is not defined
2014-07-10 09:50:52 +02:00
Jan Blunck
475d2a298d
Add support for livebuild buildtype
...
This commit allows for 'osc build' to do local builds of type livebuild.
Debian livebuild is the native Debian live image building system.
Signed-off-by: Jan Blunck <jblunck@infradead.org>
2014-07-08 21:18:01 +02:00
Marcus Huewe
d86e28744f
- parse_repoarchdescr: allow an unsupported arch during the guessing phase
...
This makes the error message in some cases more precise (for instance
"osc build openSUSE_13.21 x86_641")
2014-07-02 23:56:34 +02:00
Marcus Huewe
e662fd815b
- parse_repoarchdescr: improved yet another error message
2014-07-02 23:13:42 +02:00
Marcus Huewe
a8d0b948af
- parse_repoarchdescr: improved error messages a bit
...
Moved reading/writing of .osc/_build_repositories into the Repo class.
2014-07-02 22:07:01 +02:00
Marcus Huewe
a754164067
- use HTTPError.hdrs instead of HTTPError.headers
...
There are situations where a HTTPError instance has no headers
attribute.
2014-06-08 21:33:06 +02:00
Marcus Huewe
444a503bca
- fixed #89 ("osc commit fails with do_package_tracking = 0")
2014-06-04 16:17:06 +02:00
Marcus Huewe
a833120ebd
do_updatepacmetafromspec: added "updatepkgmetafromspec" alias
2014-05-22 13:01:44 +02:00
7f21679413
- do not forward requests if accept fails (issue 91)
2014-05-21 15:45:07 +02:00
Marcus Huewe
c873252d70
- do_build: do not suppress --download-api-only option
...
Or was there a particular reason for not displaying this option in
"osc build -h"?
2014-05-15 17:48:11 +02:00
3e7f355a0a
- show errors when request change failed
2014-05-15 18:09:47 +02:00
Marcus Huewe
38fbe8fb11
- do_maintainer: introduced setBugownerHelper method
...
Do not swallow urllib2.HTTPError exceptions with code != 403
2014-05-08 16:07:42 +02:00
Marcus Huewe
87fc39fee4
- do_maintainer: do not set bugowner/create bugowner request action twice
2014-05-08 15:41:15 +02:00
Marcus Huewe
47af622031
- do_maintainer: fixed typo (that cause a TypeError)
2014-05-08 15:26:29 +02:00
Marcus Huewe
474dcf6843
- handle ImportError of a plugin more gracefully
...
See bnc#876538 for the details.
2014-05-06 18:51:12 +02:00
Marcus Huewe
5e22cd3f4f
- do_submitrequest: use continue to start next loop iteration (instead of "next"...)
2014-04-28 15:09:29 +02:00
Marcus Huewe
d243241b1c
- added support for "osc requestmaintainership PROJECT" (if cwd is no package wc)
2014-03-12 16:41:46 +01:00
Marcus Huewe
c66a75018e
- do_submitrequest: consider the "--yes" option if the wc has local modifications
2014-03-12 10:50:46 +01:00
714de8519c
- support release --set-release option
2014-03-05 16:03:23 +01:00
46b8f2613f
- fix --no-checks description
2014-03-04 09:12:26 +01:00
Marcus Huewe
8b058b3a47
- do_setlinkrev, set_link_rev: fixed #72
...
Also refactored set_link_rev code a bit so that the new _set_link_rev
function could be used by link_pac in the future.
2014-03-03 22:44:30 +01:00
Scott Bahling
a33c40eb53
Fix handling of meta command within local working directory
...
* Fix osc ignoring -A apiurl command option when arguments are
less than 2 and executed within local working copy
* Enhance handling of meta command within local working copy.
- meta prj: Try to use project and apiurl of local working copy
if no arguments are passed
- meta pkg: Try to use project and apiurl of local working copy
if one argument is passed (single argument assumed to be package
name), and try to use project, package and apiurl if no
arguments are passed
2014-02-27 16:45:44 +01:00
c4f0397b0f
Takes care when the commit is in project level
2014-02-27 16:45:44 +01:00
014551e786
Move the user interaction for linked package into commandline.py
2014-02-27 16:45:44 +01:00
Ludwig Nussel
955c46495b
replace sys.exit(0) to avoid backtrace
2014-02-27 08:39:54 +01:00
Marcus Huewe
87e24c3aa6
- do_commit: added --no-message option
...
Commit without specifying a log comment. Fixes #73 .
2014-02-12 14:52:39 +01:00
Sascha Peilicke
3c0dbaba7f
Add flag '--noverify' next to '--no-verify'
...
Align with other '--no$bla' flags. Note that the alternative is added
after '--no-verify', optparse uses the first arg for the stored config
variable.
2014-02-12 12:26:59 +01:00
Marcus Huewe
b5d47ebd8c
- do_maintainer: fixed support for groups
...
Ideally, the whole method will be refactored one day...
2014-02-11 11:56:44 +01:00
Marcus Huewe
49ed086d0b
- do_vc: added a --file <filename> option
...
Can be used to read changes from <filename>.
2014-02-05 17:50:31 +01:00
98a625e89e
- show also error details on request accept error
2014-02-04 14:35:30 +01:00
e1007e1bd8
- show api error on failure of request/review accept
2014-01-30 11:52:24 +01:00
0557fecd02
- support bugowner set of groups
2014-01-24 17:01:35 +01:00
7fcb1bbe3e
- fix set bugowner command
2014-01-24 10:29:00 +01:00
Marcus Huewe
cf35fb441f
- do_request: support float values for --days (affects list)
2014-01-14 11:04:04 +01:00
Marcus Huewe
edd199af3b
- _load_plugins: handle NameError more gracefully
2014-01-10 15:58:33 +01:00
Vitezslav Cizek
f85c76bd42
correctly specify --delete option when using rsync
2014-01-08 15:18:02 +01:00
Michal Čihař
e9793df634
Fixed typo in authentication
2013-12-09 19:26:15 +01:00
f202fbd111
add option for deleterequests using auto-accept
2013-12-05 10:23:53 +01:00
Sascha Peilicke
89eb129e4d
Same output as "osc branch" for mbranch command
...
Users can just copy-paste the "osc co ..." command in their shell and be
more productive.
2013-11-18 13:48:09 +01:00
Marcus Huewe
73048d1159
- yet another fix for the previous commit
2013-11-15 11:42:58 +01:00
Marcus Huewe
b2493a25ae
- fix for 6a36b5180a
...
It is ridiculous that we have duplicated code for "osc sr" and
"osc createrequest"...
2013-11-15 11:39:21 +01:00
Marcus Huewe
6a36b5180a
- do_submitrequest: automatically supersede existing requests if "--yes" was specified
...
Fixes #58
2013-11-15 11:13:27 +01:00
a7ea5043ae
- allow also to execute a token with a registered service
2013-11-13 18:23:44 +01:00
63e1124c09
- add support to handle authentification token support
2013-10-31 09:12:17 +01:00
67802e6a41
- support restartbuild and abortbuild
...
small refactoring but keep api compability
2013-10-28 18:30:32 +01:00
Sascha Peilicke
43499172af
Kill Danny's awesome english
2013-10-28 10:21:21 +01:00
Sascha Peilicke
569e89fede
Add --unset parameter to setdevelproject
...
Allows to unset the devel project (much like setlinkrev -u).
2013-10-18 11:50:07 +02:00
Sascha Peilicke
3d72e60321
Improve devel project commands.
...
Let "osc develproject" (with new alias "dp") display the devel package
if it doesn't match the package name. Deprecate "--raw" option which
only was a crude workaround for that anyway.
Add "osc setdevelproject" (alias "sdp") command to change a package's
devel project / package.
2013-10-07 14:31:50 +02:00
Marcus Huewe
7f1d7f6258
- do_request: added --no-devel option in order to disable the forwarding to the devel project (if the request is accepted)
...
Original patch by "Dominique Leuenberger a.k.a. Dimstar" <dimstar@opensuse.org>
(I just renamed the option from "--nodevel" to "--no-devel").
2013-09-25 15:36:54 +02:00
38edcb605f
- drop double read(), the copy_pac method is doing that already and python 2.6 is crashing here
2013-09-17 16:39:23 +02:00
Marcus Huewe
bf2e372c30
- added new "osc clean" command
...
"osc clean" removes all untracked files from a package working
copy.
2013-09-12 16:14:14 +02:00
aef9f7e6d2
- _sslcert is stored in meta space
2013-09-05 14:54:15 +02:00
edda98eaff
- add signkey --sslcert option to fetch the optional create ssl certificate instead of gpg key
2013-08-30 09:41:13 +02:00
Marcus Huewe
c78da6c496
- _load_plugins: also add imported modules to the class
...
This is needed for backward compatibility. New plugins
(which do not care about "old" osc versions) should not
use "self.<imported modname>.<something>" anymore
to refer to the imported module. Instead use
"<imported modname>.<something>" (this will only work with
osc > 0.140.1).
2013-08-15 17:26:07 +02:00
6461c9faf0
add --last parameter for build logs to show last finished log file, if currently building
2013-08-13 10:38:43 +02:00
Marcus Huewe
67a0671c8a
- _load_plugins: follow-up fix for commit 58d716a6f7
...
Only add functions to the Osc class which are defined in the _current_
module.
2013-07-23 12:10:31 +02:00
41adda44f6
- add support for manual release of sources with binaries (FATE #315250 )
2013-07-08 15:59:14 +02:00
Marcus Huewe
58d716a6f7
- _load_plugins: add all functions from the plugin to the Osc class
...
Adding only functions which starts with "do_" breaks the old
behavior.
2013-06-26 10:18:14 +02:00
Marcus Huewe
4996b1d1ac
- do_copypac: fixed help text of the --revision option (as suggested by darix)
...
It "copies" the specified revision instead of "linking" it.
2013-06-21 15:11:20 +02:00
Marcus Huewe
58532bbac7
- small fix for commit d338254bb7
...
catch HTTPError instead of TypeError
2013-06-17 17:37:40 +02:00
Sascha Peilicke
d338254bb7
Display meaningful message for queries w/o project
...
Like: osc rq list -U $USER -t change_devel
2013-06-17 16:26:00 +02:00