forked from kiss-community/kiss
kiss: Fix remote sources which aren't tarballs.
This commit is contained in:
parent
f4766b3cc4
commit
69471ec52b
11
kiss
11
kiss
@ -204,10 +204,15 @@ pkg_extract() {
|
|||||||
|
|
||||||
# Local files (Any source that is non-remote is assumed to be local).
|
# Local files (Any source that is non-remote is assumed to be local).
|
||||||
*)
|
*)
|
||||||
[ -f "$repo_dir/$src" ] ||
|
if [ -f "$repo_dir/$src" ]; then
|
||||||
die "[$1]: Local file $src not found."
|
cp -f "$repo_dir/$src" "./$dest"
|
||||||
|
|
||||||
cp -f "$repo_dir/$src" "./$dest"
|
elif [ -f "$src_dir/$1/${src##*/}" ]; then
|
||||||
|
cp -f "$src_dir/$1/${src##*/}" "./$dest"
|
||||||
|
|
||||||
|
else
|
||||||
|
die "[$1]: Local file $src not found."
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done < "$repo_dir/sources"
|
done < "$repo_dir/sources"
|
||||||
|
Loading…
Reference in New Issue
Block a user