summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-20 17:56:55 +0000
committerdavidovski <david@davidovski.xyz>2022-02-20 17:56:55 +0000
commit0e307ec9997b94a2a782746d2a28ab15a9ea2a87 (patch)
tree857ed0019501ddd03359cef99ca26016104aec88
parentddc160469a6b870f225a78ce579029cf1ef90e03 (diff)
added default target for updates
-rw-r--r--src/install.sh4
-rw-r--r--src/query.sh2
-rw-r--r--xipkg.conf2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/install.sh b/src/install.sh
index c73a202..da8b7a2 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -67,6 +67,10 @@ run_postinstall () {
install () {
local packages=$@
+ if [ "$#" = "0" ]; then
+ packages=$(ls ${INSTALLED_DIR})
+ fi
+
local missing=""
for package in $packages; do
[ ! -f $package ] && missing="$missing $(basename $package)"
diff --git a/src/query.sh b/src/query.sh
index 0697005..d5571b0 100644
--- a/src/query.sh
+++ b/src/query.sh
@@ -1,7 +1,7 @@
#!/bin/sh
search () {
- find ${PACKAGES_DIR} -type f | sed "s,${PACKAGES_DIR}/,," | grep$(echo $@ | sed "s/ /\\|/g")
+ find ${PACKAGES_DIR} -type f | sed "s,${PACKAGES_DIR}/,," | grep $(echo $@ | sed "s/ /\\|/g")
}
files () {
diff --git a/xipkg.conf b/xipkg.conf
index 728e3e5..549282a 100644
--- a/xipkg.conf
+++ b/xipkg.conf
@@ -8,8 +8,8 @@ include /etc/xipkg.d/default.conf
# ensure that you have a bit of redunancy in case of back up
sources {
local file:///var/lib/xib/export/repo/
- davidovski https://xi.davidovski.xyz/repo/
ftp https://xilinux.ftp.sh/repo/
+ davidovski https://xi.davidovski.xyz/repo/
}
# The sources to download the keys from