Commit c8e728d6 authored by AlmAck's avatar AlmAck
Browse files

Attempt to copy the packages to the pacman cache using pacman directly

since we don't have sudo rights we use pacman --download feature to do the work
parent 67d7ff8a
......@@ -178,7 +178,13 @@ move_to_cache() {
local cache=/var/cache/pacman/pkg
msg "Moving packages to «$cache»"
mv $* $cache
# that's a bit tricy, but since we don't have access rights to the cache folder
# we must use pacman to do the job
for pkg in $*; do
local pkg_name=echo "$(basename $pkg)" | rev | cut -d'-' -f4- | rev
pacman -Sw $pkg_name
rm $pkg
# performs a remote lock over a repository
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment