aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-03-09 07:40:36 +0000
committermerakor <cem@ckyln.com>2020-03-09 07:40:36 +0000
commit6c116ca6bdf05197d29db641901f330026436bb1 (patch)
treedd1774587c2fe9bf06bd55bb5fad647b9402ab8b
parente2f85f23fac51d38c7c6df492547838b527b9460 (diff)
downloadcpt-6c116ca6bdf05197d29db641901f330026436bb1.tar.gz
add a command just for fetching remote repositories
FossilOrigin-Name: b76f6d80b979c6b07f9acf99f24adf95fc7c9961962eb558025bd6aeea3c8558
-rwxr-xr-xkiss17
1 files changed, 12 insertions, 5 deletions
diff --git a/kiss b/kiss
index feafe6d..32561a1 100755
--- a/kiss
+++ b/kiss
@@ -1062,10 +1062,7 @@ pkg_install() {
log "$pkg_name" "Installed successfully"
}
-pkg_updates() {
- # Check all installed packages for updates. So long as the installed
- # version and the version in the repositories differ, it's considered
- # an update.
+pkg_fetch() {
log "Updating repositories"
# Create a list of all repositories.
@@ -1131,6 +1128,13 @@ pkg_updates() {
fi
}
done
+}
+
+pkg_updates(){
+ # Check all installed packages for updates. So long as the installed
+ # version and the version in the repositories differ, it's considered
+ # an update.
+ pkg_fetch
log "Checking for new package versions"
@@ -1296,6 +1300,8 @@ args() {
done
;;
+ f|fetch) pkg_fetch ;;
+
i|install)
pkg_order "$@"
@@ -1316,10 +1322,11 @@ args() {
v|version) log kiss 1.7.7 ;;
h|help|-h|--help|'')
- log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
+ log 'kiss [a|b|c|f|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
log 'alternatives: List and swap to alternatives'
log 'build: Build a package'
log 'checksum: Generate checksums'
+ log 'fetch: Fetch repositories'
log 'install: Install a package'
log 'list: List installed packages'
log 'remove: Remove a package'