Commit graph

99 commits

Author SHA1 Message Date
Till Wegmueller
d00de23d52
Simplify pkg5_import.rs by removing redundant directory creation logic; delegate to Transaction.commit() for handling. 2025-07-27 12:19:38 +02:00
Till Wegmueller
9b271d81b5
Add support for User, Group, Driver, Legacy, and Transform actions in Manifest parsing
- Implement parsing and mapping of new action types: `User`, `Group`, `Driver`, `Legacy`, and `Transform` within `Manifest`.
- Introduce comprehensive test coverage for the newly supported actions, including edge cases for `ftpuser` property in manifests.
- Refactor to leverage `HashSet` for user `services` to avoid duplicates.
- Improve comments and error handling during action parsing for enhanced clarity and robustness.
2025-07-27 11:30:24 +02:00
Till Wegmueller
ad153a65ab
Replace println! statements with structured logging using the tracing crate, refactor error handling to use error! macros for logging, improve comments for clarity, and simplify type usage by utilizing HashMap and HashSet from the prelude. 2025-07-26 23:41:09 +02:00
Till Wegmueller
cb75c045e5
Introduce Pkg6DevError for improved error handling across pkg6dev, replace anyhow with custom error types, enable structured diagnostics with miette, update dependencies, and add tracing for logging. 2025-07-26 21:20:50 +02:00
Till Wegmueller
b451099b54
Refactor tests and stubs: update parsed_manifest assertions with more descriptive values and simplify unused variable patterns in repository rest backend methods. 2025-07-26 18:04:58 +02:00
Till Wegmueller
4649608408
Replace anyhow with custom RepositoryError for improved error specificity and consistency. Remove anyhow dependency. 2025-07-26 16:50:10 +02:00
Till Wegmueller
a33a3246b6
chore(fmt): format with cargo fmt 2025-07-26 12:54:01 +02:00
Till Wegmueller
a5cdb7e673
Add JSON and TSV output to repository commands, integrate serde for struct serialization, and introduce search subcommand with flexible filtering options. 2025-07-26 12:35:44 +02:00
Till Wegmueller
307dfddc7c
Remove TESTING.md, fix CLI argument naming (--repo-version), enhance transaction publisher handling, and improve manifest storage logic. 2025-07-26 11:52:42 +02:00
Till Wegmueller
4f0e2fe066
Add unit and end-to-end tests for repository functionality, including setup scripts, package management operations, and TESTING.md documentation. 2025-07-26 10:52:25 +02:00
Till Wegmueller
ead9ad12af
Refactor repository traits into ReadableRepository and WritableRepository, introduce Repository to combine traits for backward compatibility, and update relevant modules and tests to use the new structure. 2025-07-26 10:34:45 +02:00
Till Wegmueller
a0fcc13033
Introduce Catalog module with structs and functionality for managing package metadata, enhance file_backend and CLI to handle catalog operations, and update dependencies (chrono and others) to support new features. 2025-07-24 00:28:33 +02:00
Till Wegmueller
63f2d1da62
Add search method to repository module for querying packages, update dependencies to support search functionality. 2025-07-23 23:22:24 +02:00
Till Wegmueller
2cb63fbef0
Introduce PackageContents struct for structured representation of package data, refactor show_contents for multiple content types, and enhance handling of manifests with improved filtering and output formatting. 2025-07-23 22:39:49 +02:00
Till Wegmueller
ca7ce75008
Enhance show_contents to parse manifests directly, add filtering by publishers, patterns, and action types, and handle multiple content types (files, directories, links, dependencies, licenses). 2025-07-22 19:39:46 +02:00
Till Wegmueller
5d987ca0cb
Refactor package FMRI handling by introducing Fmri struct, update dependencies, and adjust repository and action modules for structured FMRI data processing
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-07-22 14:10:37 +02:00
Till Wegmueller
e3662eaf23
Introduce PackageInfo struct for structured package data, refactor list_packages to use it, and enhance publisher directory handling
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-07-22 11:57:24 +02:00
Till Wegmueller
7332e0f7b5
Refactor repository info retrieval to return structured data, add detailed publisher information, and update tests accordingly
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-07-22 10:21:16 +02:00
Till Wegmueller
a9584fa6d2
Add package publishing functionality and default publisher management
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-07-21 23:20:19 +02:00
Till Wegmueller
8a32bf3176
Add compression support (Gzip/LZ4) and update dependencies
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-07-21 22:37:08 +02:00
Till Wegmueller
1a5e0e053d
Add repository module and update dependencies
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-07-21 22:02:05 +02:00
Till Wegmueller
bef5442afd
Adding diff-struct
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2024-08-15 21:27:00 +02:00
Till Wegmueller
5cea5186d7
Add serde and image starter module
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2024-08-14 20:02:29 +02:00
Till Wegmueller
a8f84ef3f6
fix derivable impls
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-03-25 16:57:51 +01:00
Till Wegmueller
2b4d01df8a
test problems
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-03-25 13:13:41 +01:00
Till Wegmueller
640fc4f611
fixing clippy issues
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-03-25 13:08:40 +01:00
Till Wegmueller
59ae8ea4cc
fixing clippy issues
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-03-25 13:01:05 +01:00
Till Wegmueller
8b9e69a787
fixing clippy issues
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-03-25 12:48:09 +01:00
Till Wegmueller
5291bb304f
fixing clippy issues
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-03-25 12:47:54 +01:00
Till Wegmueller
4ebecbd153 Adding ports and specfile crates. Switch to thiserror for libraries 2022-09-02 23:48:26 +02:00
Till Wegmueller
bf5c8253a8 Remove unused import 2022-07-31 16:51:03 -03:00
dependabot[bot]
b4458da5f3
Bump regex from 1.4.5 to 1.5.5
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.5 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.4.5...1.5.5)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 20:14:34 +00:00
Till Wegmueller
3481814af2 Switch to anyhow and thiserror
Update clap to version 3
Make golang file parseable by removing line breaks
2022-03-24 19:48:41 -03:00
Till Wegmueller
d129518d33 Add Unicode parsing
Add Linebreak parsing
2021-09-04 23:58:43 -03:00
Till Wegmueller
665ea0bed1 Update tests 2021-05-01 16:12:20 -03:00
Till Wegmueller
f67ceb4b05 Hotfix to add ! property value characters 2021-05-01 16:05:28 -03:00
Till Wegmueller
b516ee1498 Cargo Publish fixes 2021-04-24 23:29:45 -03:00
Till Wegmueller
27d026d84c Cargo Publish fixes 2021-04-24 23:29:19 -03:00
Till Wegmueller
de57e52066 Bump Version for release 2021-04-24 23:26:13 -03:00
Till Wegmueller
a4b998d9d4 First CI/CD feature 2021-04-24 23:19:25 -03:00
Till Wegmueller
499e5aee59 Remove extra println 2021-04-24 19:14:30 -03:00
Till Wegmueller
5b52c8565a Fixup tests 2021-04-24 19:13:41 -03:00
Till Wegmueller
54709d1cc5 WIP: Manifest Parsing 2021-04-24 18:56:12 -03:00
Till Wegmueller
991ea1d86c Fix tests with pest parsing 2021-04-20 19:57:47 -03:00
Till Wegmueller
48525d3122 Implement pest parsing 2021-04-19 23:38:56 -03:00
Till Wegmueller
d557773763 Fix tests 2021-04-19 21:34:40 -03:00
Till Wegmueller
40f18ef38f WIP: pest parser 2021-04-19 09:35:05 -03:00
Till Wegmueller
bae6f32d88 WIP: Add Capability to generate manifest file 2021-04-13 22:20:43 -03:00
Till Wegmueller
25ff8bc9d4 merging all ips packages into one repo 2021-03-21 14:12:03 -03:00