0bf2ef0c54
Fix command descriptions in help by moving the import statements under docstring in the do_*() methods
2025-01-08 09:10:59 +01:00
93a851b41c
Merge pull request #1682 from dmach/xml-etree-extend-ParseError
...
Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML
2025-01-07 13:08:02 +01:00
eecab6e798
Convert remaining makeurl() query parameters from deprecated string to dict
2025-01-06 17:06:41 +01:00
6fc5654aca
Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML
2025-01-02 14:25:23 +01:00
a20f2240a3
Merge pull request #1662 from dmach/osc-status-show-unmodified-help
...
Document that 'status' command prints unmodified files in verbose output
2024-11-29 16:47:08 +01:00
a6db8ad25c
Fix local building in git projects
...
osc did not find it's store and was unable to run a local build
in a project git
2024-11-29 16:36:48 +01:00
6d91083413
Move running obs_scm_bridge into run_obs_scm_bridge() function
2024-11-29 16:36:48 +01:00
7ed288b838
Load most of the modules in commandline.py on-demand
2024-11-26 15:38:22 +01:00
aaa0332782
Document that 'status' command prints unmodified files in verbose output
2024-11-12 09:05:00 +01:00
67f7625ee5
Fix crash in 'build' command due to undefined 'build_root' variable
2024-11-08 13:19:19 +01:00
8216118278
Update osc/commandline.py
...
Co-authored-by: Dirk Mueller <dmueller@suse.com>
2024-11-08 08:30:21 +01:00
8dff7f58d7
checkout: allow to checkout obs imported sources of scmsync sources
...
This allows to skip the check of obs-scm-bridge and checks out what
is stored in OBS src server.
Note: This is not necessarly the same representation as in git
(.obscpio instead of directories or sub modules).
Also no modification can be committed.
So this is only intended for people who understand the current
internal implementation of the source storage. There is no
guarantee that this won't change.
Checkout of entire project git is not working with this switch, as
the packagelist of osc is empty. It may also make no sense to do
this as it will not perform for large projects.
2024-11-08 08:30:21 +01:00
Fabian Vogt
facdbf2306
Support the mkosi build type
...
Unlike other recipe files, OBS detects this by matching the prefix rather
than the suffix. As this would cause conflicts with e.g. mkosi.spec the
build type detection had to be changed a bit.
2024-11-05 15:48:01 +01:00
42b5113687
Print buildroot directory when build or chroot finishes
...
This used to be printed but was dropped with a refactoring.
Of course, there is the --just-print-buildroot option, but
there is no harm printing this information anyway.
Signed-off-by: Egbert Eich <eich@suse.com>
2024-11-05 14:20:15 +01:00
1d87e29c78
Merge pull request #1599 from dmach/gitea_api
...
Add 'gitea_api' module and 'git-obs' executable
2024-10-11 16:23:13 +02:00
70975fc5b8
Merge pull request #1639 from adrianschroeter/token_parameters
...
Support parameters on token triggers
2024-10-11 16:21:49 +02:00
7eddadf620
Merge pull request #1641 from dmach/fix-build-local-package-.osc
...
Fix crash in 'build' command when building with --local-package --alternative-project from a locally initialized .osc package
2024-10-11 16:21:23 +02:00
b0b8588e7c
Fix crash in 'build' command when building with --local-package --alternative-project from a locally initialized .osc package
2024-10-11 14:52:45 +02:00
541b6da423
Improve git-obs startup time by loading less python modules
2024-10-11 13:13:26 +02:00
ff30efaa81
Change the help output to determine executable name from the command-line arguments
2024-10-11 13:13:26 +02:00
44767f26ff
Support parameters on token triggers
...
Add missing parameters for token triggers. Esp used
for rebuild and release commands.
2024-10-11 10:35:49 +02:00
Björn Bidar
88d1d96632
Add --no-timestamps parameter to build
...
Add --no-timestamps parameter which already exists in build.
Help text copied from build.
Include parameters for the same parameter in buildlog for easier
use.
2024-10-09 03:23:34 +03:00
1fc581325f
Merge pull request #1625 from adrianschroeter/copypac_scmsync
...
Support copy of scmsync packages
2024-10-02 14:28:32 +02:00
f0292dd2be
Support copy of scmsync packages
...
There are two ways, either copy the scmsync definition or drop it
when creating a new package meta.
If we keep it, we must not ask OBS to copy sources, it is syncing it
anyway.
We could add another option to skip the scmsync tag copy, but we keep
it as default, because we don't want to give a different view of the
the sources to the user. The client side copy is doing this.
2024-10-02 13:39:11 +02:00
372a6f5b84
Merge pull request #1633 from adrianschroeter/crea
...
creq: Allow to specify source and target repository
2024-09-26 15:41:02 +02:00
0ded12a014
Support Dockerfile.* in _multibuild packages
...
The suffix can be
packageid
flavor
packageid-reponame
flavor-reponame
Also adding support already for "Containerfile", support will
come to OBS as well (same file, just different name)
2024-09-26 13:13:45 +02:00
575f2c2abd
creq: Allow to specify source and target repository
...
and make repository definitions optional.
2024-09-24 15:31:57 +02:00
a1428568f4
Fix 'resolved' command to skip subdirectories in package checkouts
...
Fixes running 'osc resolved *' in a package checkout with a
subdirectory.
2024-09-17 08:52:18 +02:00
625c4a70d4
Use findtext() instead of find().text
2024-09-11 13:31:41 +02:00
Andreas Schwab
54edabb992
comment: resolve project name
2024-08-27 21:02:59 +02:00
799b45a009
Fix osc build --local-package
...
Check if opts.local_package is set before attempting to read
content of the local package store or access data obtained
from it.
This fixes issue #1612 .
Signed-off-by: Egbert Eich <eich@suse.com>
2024-08-20 13:45:06 +02:00
0f5af3dec4
Merge pull request #1606 from adrianschroeter/creq
...
Adding creq release functionality
2024-08-20 10:21:26 +02:00
647fbd6d7d
Merge pull request #1604 from daissi/typo
...
Fix typos in commandline.py
2024-08-20 10:20:22 +02:00
529a6e4ff0
Change 'review list' command to omit requests with 'declined' state
2024-08-20 10:18:43 +02:00
54cc6ee415
Adding creq release functionality
...
to become to construct a multi action release request on CLI.
Also reporting created request id when using creq command.
2024-08-09 11:23:21 +02:00
Dylan Aïssi
1b028c520a
Fix typos in commandline.py
...
Detected by lintian
Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
2024-08-05 17:24:54 +02:00
a887ade78f
Fix possibility to overwrite special files in .osc (CVE-2024-22034 boo#1225911)
...
Source files are now stored in the 'sources' subdirectory which prevents
name collisons. This requires changing version of '.osc' store to 2.0.
2024-07-29 13:24:13 +02:00
7c941156b9
Introduce build --checks parameter
...
Added in build script
2024-07-15 13:37:34 +02:00
f35895d262
Change 'repairwc' command to always run all repair steps
...
... even if the working copy loads without an exception
2024-07-04 22:09:24 +02:00
5c185f26f7
Change 'repairwc' command to fix missing .osc/_osclib_version
2024-07-02 13:28:15 +02:00
473f6fd333
Redirect venv warnings from stderr to debug output
...
The message was disturbing during regular use on NixOS
because the file system layout doesn't conform with FHS
and sys.base_prefix != sys.prefix.
2024-06-28 08:53:47 +02:00
b972c1db21
Merge pull request #1582 from dmach/sr-supersede-message
...
Improve 'submitrequest' command to inherit description from superseded request
2024-06-25 08:32:11 +02:00
Sascha Grunert
e43477921c
Add results --fail-on-error/-F
flag
...
This allows to exit with `1` in case any build fails to provide feedback
to end-user scripts.
Refers to: https://github.com/kubernetes/release/issues/3632
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-06-20 09:56:35 +02:00
b78b6ad568
Improve 'getbinaries' command by accepting '-M' / '--multibuild-package' option outside checkouts
2024-06-20 08:54:01 +02:00
110ddafbc0
Merge pull request #1580 from marcosbc/osc-results-format-for-default-text-mode
...
results: Add support for --format for default text mode
2024-06-18 17:38:45 +02:00
4d4ef09319
Update help text for '--format' option in 'results' command
2024-06-18 15:55:17 +02:00
46895095fa
Change 'results' command to use csv writer instead of formatting csv as string
2024-06-18 15:55:17 +02:00
bf99bf257e
Add couple mutually exclusive options errors to 'results' command
2024-06-18 15:55:17 +02:00
5b0fbc43b0
Fix PEP validation error
2024-06-18 15:55:17 +02:00
60094ba692
Set a default value for --format only for --csv
2024-06-18 15:55:17 +02:00