diff options
author | merakor <cem@ckyln.com> | 2020-12-21 11:13:51 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-12-21 11:13:51 +0000 |
commit | 440af4f3ebfecd68dabf8ce5524fd3f953e81c71 (patch) | |
tree | d7ceaf1d040bad60822c87ad78ca30de76df1342 /src/cpt-checksum | |
parent | 36308f68ddd95984c1909c5ca00a6ab70544d15b (diff) | |
download | cpt-440af4f3ebfecd68dabf8ce5524fd3f953e81c71.tar.gz |
cpt: remove cpt-stat and cpt-readlink, add _stat() and _readlinkf
cpt-readlink and cpt-stat were unnecessary additions for mundane tasks. Since
they were binaries instead of scripts, they added an extra layer of complexity
to the library.
These functions are now included inside the package manager library with the names
_readlinkf() and _stat().
FossilOrigin-Name: 7e15e2b57ddcb834c4286c8d1ac0a28031ae4f5d39f3c6a99f5b3aa0e9a83d43
Diffstat (limited to 'src/cpt-checksum')
-rwxr-xr-x | src/cpt-checksum | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-checksum b/src/cpt-checksum index 0a83ae0..cd1fa4e 100755 --- a/src/cpt-checksum +++ b/src/cpt-checksum @@ -22,8 +22,7 @@ for pkg; do tee "$repo_dir/checksums" else log "$pkg" "Need permissions to generate checksums" - - user=$(cpt-stat "$repo_dir") as_root tee "$repo_dir/checksums" + user=$(_stat "$repo_dir") as_root tee "$repo_dir/checksums" fi } |