5c42e7d623
Support _manifest file in git store
2025-08-11 15:20:40 +02:00
d00e60d99e
Fix unit tests to use the new code path to run osc
2025-07-31 13:31:35 +02:00
9049e4164f
Fix osc.gitea_api.dt_sanitize() by replacing dateutil with datetime
2025-07-30 10:44:51 +02:00
666e9ab7c0
Move get_editor() and related functions from command-line module to gitea_api.common
2025-07-07 11:41:10 +02:00
d17c63c29a
Merge pull request #1861 from dmach/osc-improve-git-detection-git-osc-same-dir
...
Improve detection of git package when project git contains both .git and .osc
2025-07-07 11:22:45 +02:00
42024c2c91
Fix RequestWrongOrder output during tests
2025-07-07 08:13:20 +02:00
f25d970e01
Add obs_api.Request.search() method
2025-07-07 08:13:20 +02:00
4169445ee2
Improve detection of git package when project git contains both .git and .osc
2025-07-03 22:02:23 +02:00
59fe5e8cb9
Fix detection of gitstore
2025-06-25 14:31:53 +02:00
10f3ba264d
Merge pull request #1830 from dmach/updatepacmetafromspec-queryrecipe
...
Improve 'updatepacmetafromspec' command to expand rpm spec macros by calling queryrecipe to query the data
2025-06-24 13:13:32 +02:00
c4c95ea5d8
Improve 'updatepacmetafromspec' command to expand rpm spec macros by calling queryrecipe to query the data (bsc#1243722)
2025-06-23 20:48:14 +02:00
17e6504e36
Move yaml handling code to osc.util.yaml, add fallback to PyYaml
2025-06-19 11:37:10 +02:00
4df8ac5e9d
Fix remaining issues with environmental variables in unittests
2025-06-03 13:47:05 +02:00
b6f8c6026d
Fix git store when .git is a file with "gitdir: <path>" link
2025-05-22 20:57:52 +02:00
e2d890391e
Refactor gitea_api to use objects with properties instead of raw JSON data
2025-05-20 14:29:20 +02:00
f77a65de79
Fix handling env in tests for 'osc vc'
2025-05-12 08:50:57 +02:00
3ac715b40f
Fix how GitStore reads project from the parent directory
2025-05-12 08:50:57 +02:00
Andrii Nikitin
a9d5f8ca6d
Fix git-obs pr create with multistring EDITOR
2025-05-07 14:19:10 +02:00
292030dbb4
Add gitea_api.Git.urlparse() for parsing git urls
2025-04-02 10:12:02 +02:00
90897c4009
Support new 'X | None' union syntax in field types
2025-03-06 09:59:41 +01:00
8287354d48
Improve core.binary() by always considering data that contains \0 binary
2025-02-12 13:45:55 +01:00
a8106f3f66
Fix detecting binary files
2025-02-03 09:12:19 +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
a5ef0573a1
Sync ScmsyncObsinfo with obs-scm-bridge
2025-01-07 10:40:35 +01:00
6fc5654aca
Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML
2025-01-02 14:25:23 +01:00
79a1245db0
Fix handling SimpleFlag model
2024-11-29 15:44:17 +01:00
856277b63c
Fix store migration from 1.0 to 2.0 when there is a 'sources' file that would conflict with 'sources' directory
2024-11-05 10:07:06 +01:00
292052912c
Add test for extracting ar archive without long filenames
2024-08-27 11:28:44 +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
52f076636d
Make most of the fields in KeyinfoPubkey and KeyinfoSslcert models optional
...
The presence of the fields seems to be random and the only truly required field
is the actual public key/cert. Other fields are only for the information.
2024-07-04 14:24:52 +02:00
4d1651d038
Fix colorize() to avoid wrapping empty string into color escape sequences
2024-07-04 14:24:52 +02:00
b8e187cc70
Fix tests so they don't modify fixtures
2024-06-25 08:48:45 +02:00
5c3cca63c4
Run check_store_version() in obs_scm.Store and fix related code in Project and Package
2024-06-24 12:37:15 +02:00
661bc7757c
Use f-strings where possible
2024-06-18 10:26:36 +02:00
360a94c4a3
Fix config parser to throw an exception on duplicate sections or options
2024-06-03 08:21:17 +02:00
5cbd110a84
Forbid extracting files with absolute path from 'cpio' archives (boo#1122683)
...
Also fix and modernize the code, add tests.
2024-05-30 14:53:58 +02:00
d61b781976
Forbid extracting files with absolute path from 'ar' archives (boo#1122683)
...
Also fix and modernize the code, add tests.
2024-05-30 14:53:58 +02:00
23fe42be30
Fix handling the default package argument on the command-line
...
If the project was explicitly specified from the command-line,
avoid using the default package because that would be frequently
obtained from the current working copy and that leads to unexpected results.
2024-04-18 10:32:29 +02:00
eb2678e0c7
Fix XmlModel to load an empty string in an int field as None
2024-04-17 10:57:59 +02:00
d1111e23a1
Fix output.safe_write() in connection with NamedTemporaryFile
...
Fixes: AttributeError: '_io.BufferedRandom' object has no attribute 'buffer'
2024-04-17 10:57:59 +02:00
f9b17347da
Improve sanitize_text() to keep selected CSI escape sequences
2024-03-07 17:30:29 +01:00
88f7dc517b
Extend output.print_msg() to accept 'error' and 'warning' values of 'to_print' argument
2024-03-05 16:45:52 +01:00
866d178345
Move print_msg() to the 'osc.output' module
2024-03-05 16:45:52 +01:00
28326a185d
Add XPathQuery class for translating keyword arguments to an xpath query
2024-03-05 10:06:21 +01:00
cd95478ac8
Implement total ordering on BaseModel
2024-03-04 15:00:12 +01:00
747eb0ec52
Allow storing apiurl in the XmlModel instances
2024-03-04 14:58:40 +01:00
9cce6dbb8e
Allow retrieving default field value from top-level model
2024-03-04 14:58:40 +01:00
7768684461
Fix BaseModel to convert dictionaries to objects on retrieving a model list
2024-02-23 13:14:04 +01:00
ab36108871
Implement do_snapshot() and has_changed() methods to determine changes in BaseModel
2024-02-21 09:46:53 +01:00
e5774a5730
Add XmlModel class that encapsulates manipulation with XML
2024-02-21 09:46:53 +01:00