From 1b174bc95bf4a32759cac14c868aec6f4127cf0e Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 14 Sep 2021 14:31:46 +0000 Subject: cpt-fork: follow symlinks FossilOrigin-Name: 7f64d08d88702117a3790b2acd713148a91b157912cc5a8d3d78375ff0a4aba8 --- contrib/cpt-fork | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/cpt-fork b/contrib/cpt-fork index 21e1618..733c942 100755 --- a/contrib/cpt-fork +++ b/contrib/cpt-fork @@ -31,12 +31,12 @@ for pkg; do case "$pkg" in */*) [ -d "$pkg" ] || die "$pkg is not a directory" - cp -r "$pkg" . + cp -Hr "$pkg" . pkg=${pkg##*/} ;; *) cpt-search "$pkg" >/dev/null - cp -r "$(cpt-search --single "$pkg")" . + cp -Hr "$(cpt-search --single "$pkg")" . esac # Sometimes forked packages are from the database and not from a repository. -- cgit v1.2.3 From 07bb5b58d4c5dee4eb1168112cb2601c5c319b8f Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 14 Sep 2021 14:33:28 +0000 Subject: CHANGELOG: update FossilOrigin-Name: b0082d2cff84a363b2ee4e763bc7f2ad1d17629e5f92d478cdc8a628e6dd410e --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb61ae1..e9d9e9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,15 @@ this project _somewhat_ adheres to [Semantic Versioning]. [Semantic Versioning]: https://semver.org/spec/v2.0.0.html +[UNRELEASED] +--------------------------------------------------------------------------------- + +### Fixed +- `cpt-fork` follows symbolic links when forking packages. + + [6.2.0] - 2021-08-14 --------------------------------------------------------------------------------- +--------------------------------------------------------------------------------- ### BLAKE3 checksums -- cgit v1.2.3 From 529cfc136e08df98acf670037d77266d02761507 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 20 Sep 2021 12:08:19 +0000 Subject: cpt.1: update path to docs FossilOrigin-Name: 695328262ca12aa67ed1b3592a138a4dd7cf620b330298708f14c7b74d152494 --- man/cpt.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/cpt.1 b/man/cpt.1 index 54d0e0d..b9eece1 100644 --- a/man/cpt.1 +++ b/man/cpt.1 @@ -21,7 +21,7 @@ program or through the web from .Lk https://carbslinux.org/docs.html . It can also be read plaintext by running .Pp -.Dl less Pa /usr/share/doc/cpt.txt +.Dl less Pa /usr/share/doc/cpt/cpt.txt .Sh AUTHOR .An Cem Keylan Aq Mt cem@ckyln.com .Sh LICENSE -- cgit v1.2.3 From d92e98b16aa253976c697afa3f1ecfcf9960df5f Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 20 Sep 2021 12:16:14 +0000 Subject: cpt-size: fix crux-like usage FossilOrigin-Name: 5408c96aa1eb3f800a9c03e106dd583f06031d8716e1952bd42284cad605a758 --- contrib/cpt-size | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/cpt-size b/contrib/cpt-size index 4b983a1..00508b8 100755 --- a/contrib/cpt-size +++ b/contrib/cpt-size @@ -10,7 +10,10 @@ ## calculates the sizes of given ## .Ar packages ## using the files from the package manifest and outputs a total size of the -## packages along with all the files associated with them. +## packages along with all the files associated with them. If no arguments have +## been given, +## .Nm +## will use the name of the current directory as an argument. parser_definition() { setup REST help:usage -- "usage: ${0##*/} [pkg...]" disp :usage -h --help hidden:1 @@ -20,6 +23,9 @@ parser_definition() { # shellcheck disable=1091 . cpt-lib +# Use the current directory if no arguments have been given. +[ "$1" ] || set -- "${PWD##*/}" + # Ensure that all the packages given as arguments are installed. pkg_list "$@" >/dev/null -- cgit v1.2.3 From 9ee647190e9927decdcb959337cc2bd5b480b4c7 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 20 Sep 2021 12:19:18 +0000 Subject: CHANGELOG: update FossilOrigin-Name: 3ea298d7ce380b2912fbe7a2600a864eec6f86624a6f4581c7bd9132738e9ab1 --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9d9e9d..3922eaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,13 @@ this project _somewhat_ adheres to [Semantic Versioning]. [Semantic Versioning]: https://semver.org/spec/v2.0.0.html -[UNRELEASED] +[6.2.1] - 2021-09-20 --------------------------------------------------------------------------------- ### Fixed - `cpt-fork` follows symbolic links when forking packages. +- Fixed "crux-like" usage in `cpt-size` +- Fixed documentation path in the manual page [6.2.0] - 2021-08-14 -- cgit v1.2.3