1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

pkg: Parse dependencies as part of the main port entry

The "dependency" lines really belong to the main port entry, it doesn't
make sense logically to represent them separately and handling them
together will also allow easier dependency management later on. This
commit greatly simplifies the port database parsing to facilitate this,
and removes the -d option from the command line. Instead, ports are
listed with their dependencies, if they have any.
This commit is contained in:
kleines Filmröllchen 2023-10-04 12:33:54 +02:00 committed by Tim Schumacher
parent a5f566c2c6
commit 05af549bad
4 changed files with 56 additions and 44 deletions

View file

@ -5,7 +5,7 @@ pkg - Package Manager
## Synopsis
```**sh
$ pkg [-l] [-d] [-u] [-v] [-q package]
$ pkg [-l] [-u] [-v] [-q package]
```
## Description
@ -17,7 +17,6 @@ It does not currently support installing and uninstalling packages. To install t
## Options
* `-l`, `--list-manual-ports`: Show all manually-installed ports
* `-d`, `--list-dependency-ports`: Show all dependencies' ports
* `-u`, `--update-ports-database`: Sync/Update ports database
* `-v`, `--verbose`: Verbose output
* `-q`, `--query-package`: Query the ports database for package name