cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit 88faba7b2158cd15395b60ad3bf76b729f7cb96e
parent c159dbbbe26401b3a97c730b6fed9e82c17f411a
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 31 Aug 2020 23:57:32 +0300

pkg_sources(): return when there is no source file.

Diffstat:
Msrc/cpt-lib | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/cpt-lib b/src/cpt-lib @@ -499,6 +499,11 @@ pkg_cache() { pkg_sources() { # Download any remote package sources. The existence of local # files is also checked. + repo_dir=$(pkg_find "$1") + + # Support packages without sources. Simply do nothing. + [ -f "$repo_dir/sources" ] || return 0 + log "$1" "Downloading sources" # Store each downloaded source in a directory named after the