mirror of
https://github.com/rworkman/slackpkg
synced 2024-12-25 21:58:42 +01:00
Detects if installed system is Slackware Current
If the installed system is Slackware Current, creates the `/var/lib/slackpkg/current` file by default, saving the user from being asked about using a `current` mirror in a Slackware stable install.
This commit is contained in:
parent
10230a06cc
commit
e0b0a08913
1 changed files with 7 additions and 1 deletions
|
@ -64,6 +64,12 @@ function system_setup() {
|
|||
# Create $WORKDIR just in case
|
||||
mkdir -p "${WORKDIR}"
|
||||
|
||||
# Set the "current" flag if system is running Slackware Current
|
||||
if [ -n "$(echo $SLACKWARE_VERSION | sed -ne 's/.*\(+\|current\)$/\1/pi')" ] && \
|
||||
[ ! -e ${WORKDIR}/current ]; then
|
||||
touch ${WORKDIR}/current
|
||||
fi
|
||||
|
||||
# Select the command to fetch files and packages from network sources
|
||||
if [ "$DOWNLOADER" = "curl" ]; then
|
||||
DOWNLOADER="curl ${CURLFLAGS} -o"
|
||||
|
@ -188,7 +194,7 @@ as example or overwrite it with slackpkg.conf.new.\n\
|
|||
if [ "$ARCH" = "none" ] && [ "$CMD" != "new-config" ]; then
|
||||
echo -e "\
|
||||
\nThe ARCH values in slackpkg.conf are now different. You can remove\n\
|
||||
ARCH from there, and slackpkg you use your current ARCH or you can look\n\
|
||||
ARCH from there, and slackpkg will use your current ARCH or you can look\n\
|
||||
at slackpkg.conf.new or slackpkg.conf manual page to see the new valid\n\
|
||||
ARCH values\n"
|
||||
cleanup
|
||||
|
|
Loading…
Reference in a new issue