Updating.
This commit is contained in:
parent
113ddd069d
commit
d47773e7d7
|
@ -25,6 +25,9 @@ Restore_cache ()
|
|||
# without hardlinks
|
||||
cp "${DIRECTORY}"/*.deb chroot/var/cache/apt/archives
|
||||
fi
|
||||
|
||||
mkdir -p .stage
|
||||
touch .stage/cache_$(echo ${DIRECTORY} | sed -e 's|/|_|g')
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -58,4 +61,6 @@ Save_cache ()
|
|||
# Purging current cache
|
||||
rm -f chroot/var/cache/apt/archives/*.deb
|
||||
fi
|
||||
|
||||
rm -f .stage/cache_$(echo ${DIRECTORY} | sed -e 's|/|_|g')
|
||||
}
|
||||
|
|
|
@ -35,6 +35,14 @@ Exit ()
|
|||
done
|
||||
fi
|
||||
|
||||
# Saving package cache
|
||||
if ls .stage/cache_* > /dev/null 2>&1
|
||||
then
|
||||
_CACHE="$(basename .stage/cache_* | sed -e 's|cache_||' -e 's|_|/|g')"
|
||||
|
||||
Save_cache ${_CACHE}
|
||||
fi
|
||||
|
||||
return ${VALUE}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue