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