Skip to content

Commit a64693d

Browse files
authored
Merge pull request #31 from piterpunk/detect_if_system_is_running_current
2 parents c137377 + e0b0a08 commit a64693d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

files/core-functions.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ function system_setup() {
6464
# Create $WORKDIR just in case
6565
mkdir -p "${WORKDIR}"
6666

67+
# Set the "current" flag if system is running Slackware Current
68+
if [ -n "$(echo $SLACKWARE_VERSION | sed -ne 's/.*\(+\|current\)$/\1/pi')" ] && \
69+
[ ! -e ${WORKDIR}/current ]; then
70+
touch ${WORKDIR}/current
71+
fi
72+
6773
# Select the command to fetch files and packages from network sources
6874
if [ "$DOWNLOADER" = "curl" ]; then
6975
DOWNLOADER="curl ${CURLFLAGS} -o"
@@ -190,7 +196,7 @@ as example or overwrite it with slackpkg.conf.new.\n\
190196
if [ "$ARCH" = "none" ] && [ "$CMD" != "new-config" ]; then
191197
echo -e "\
192198
\nThe ARCH values in slackpkg.conf are now different. You can remove\n\
193-
ARCH from there, and slackpkg you use your current ARCH or you can look\n\
199+
ARCH from there, and slackpkg will use your current ARCH or you can look\n\
194200
at slackpkg.conf.new or slackpkg.conf manual page to see the new valid\n\
195201
ARCH values\n"
196202
cleanup

files/slackpkg.conf.5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ is /var/lib/slackpkg.
102102
.B DOWNLOADER
103103
.br
104104
Selects the download application slackpkg will use to fetch files.
105-
Current options are \fBcurl\fR or \fBwget\fR. Default is wget.
105+
Current options are "curl" or "wget".
106+
107+
The default value of
108+
.B DOWNLOADER
109+
is "wget"
106110

107111
.TP 5
108112
.B CURLFLAGS

files/slackpkg.conf.new

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ TEMP=/var/cache/packages
7474
# Package lists, file lists, and others will be stored in WORKDIR:
7575
WORKDIR=/var/lib/slackpkg
7676

77-
# Use curl or wget for Downloading (wget is default)
78-
#DOWNLOADER=curl
79-
77+
# Use curl or wget for downloading (wget is default)
8078
DOWNLOADER=wget
8179

8280
# Special options for curl

0 commit comments

Comments
 (0)