Update installation to consider symlinks as well.
Addresses problem raised in #25
This commit is contained in:
parent
d7e83f6ca0
commit
c21469a518
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ for package in $packages; do
|
||||||
# Pipe all package files (no folders) to Tar.
|
# Pipe all package files (no folders) to Tar.
|
||||||
dpkg -L $package |
|
dpkg -L $package |
|
||||||
while IFS= read -r f; do
|
while IFS= read -r f; do
|
||||||
if test -f $f; then echo ${f:1}; fi; #${f:1} removes the leading slash that Tar disallows
|
if test -f $f || test -L $f; then echo "${f:1}"; fi; #${f:1} removes the leading slash that Tar disallows
|
||||||
done |
|
done |
|
||||||
xargs tar -czf $cache_filepath -C /
|
xargs tar -czf $cache_filepath -C /
|
||||||
echo "done."
|
echo "done."
|
||||||
|
@ -48,4 +48,4 @@ for package in $packages; do
|
||||||
done
|
done
|
||||||
# Remove trailing comma.
|
# Remove trailing comma.
|
||||||
echo ${manifest:0:-1} > $manifest_filepath
|
echo ${manifest:0:-1} > $manifest_filepath
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
Loading…
Reference in a new issue