From 40d24fb8377f7caec17f249ea8b8fedd8810a0f5 Mon Sep 17 00:00:00 2001 From: merakor Date: Sat, 3 Apr 2021 13:28:42 +0000 Subject: docs: update FossilOrigin-Name: 37589ee7a72fdf8059ee4c529ada5e10b6956896eb062e006bac20efe40993eb --- docs/cpt.org | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'docs/cpt.org') diff --git a/docs/cpt.org b/docs/cpt.org index caa35c9..9107604 100644 --- a/docs/cpt.org +++ b/docs/cpt.org @@ -495,7 +495,6 @@ license: MIT maintainer: Linux User #+end_example - ** post-install :PROPERTIES: :DESCRIPTION: The post-installation script @@ -925,7 +924,7 @@ This function was taken from [[https://github.com/ko1nksm/readlinkf][POSIX sh re =readlink= is also not defined by POSIX, so this function uses =ls= to follow symbolic links until it reaches the actual file. -** TODO System Functions +** System Functions :PROPERTIES: :DESCRIPTION: Functions to manipulate your system :END: @@ -947,7 +946,7 @@ following order: The program called for this operation can be overridden using the ~$CPT_SU~ variable. -** TODO Package Functions +** Package Functions :PROPERTIES: :DESCRIPTION: Manipulate, or query anything related to packages :END: @@ -971,7 +970,16 @@ create_cache pkg_build cpt #+end_src -*** TODO =pkg_depends()= +*** =pkg_depends()= + +This function calculates the dependencies for the requested package, returning +the variable ~$deps~. This variable can then be passed to [[=pkg_order()=][pkg_order()]] in order +to generate an ordered list for building packages. + +*** =pkg_order()= + +This function receives package names and returns ~$order~ and ~$redro~ variables +that can be used for building and removing packages. *** =pkg_owner()= :PROPERTIES: -- cgit v1.2.3