__package: inconsistent support for --upgrade #29

Open
opened 2021-11-20 11:24:56 +00:00 by ungleich-gitea · 0 comments

This is more of a general issue with the __package* types, in reality __package does: __package_$type "$@"., which would imply that it is expected that all such types support the same interface (with __package_$type supporting a superset, but never a proper subset (a.k.a. missing features from __package)).

This because: __package supports a --upgrade parameter, which is not documented and also not supported by all __package* types.
Same goes for --version, ...

From a quick look, this is already quite confusing even just considering apt, apk, opkg and pkgng_freebsd.

What could be a reasonable way forward?

This is more of a general issue with the `__package*` types, in reality `__package` does: `__package_$type "$@"`., which would imply that it is expected that all such types support the same interface (with `__package_$type` supporting a superset, but never a proper subset (a.k.a. missing features from `__package`)). This because: `__package` supports a `--upgrade` parameter, which is not documented and also not supported by all `__package*` types. Same goes for `--version`, ... From a quick look, this is already quite confusing even just considering `apt`, `apk`, `opkg` and `pkgng_freebsd`. What could be a reasonable way forward?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#29
No description provided.