mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-18 10:26:27 +01:00
modify ChangeLog-current.txt; also, I meant to change SQDIR to QUEUEDIR before committing r433 but forgot (I like more descriptive vars); make that change now
This commit is contained in:
parent
08d85254d1
commit
ab38f5e12a
4 changed files with 16 additions and 13 deletions
|
@ -2,6 +2,9 @@ Sat Jan 31 02:04:46 UTC 2009
|
||||||
Sbopkg 0.XX.X released. This version contains the following fixes and
|
Sbopkg 0.XX.X released. This version contains the following fixes and
|
||||||
enhancements:
|
enhancements:
|
||||||
|
|
||||||
*
|
* Commit a patch that adds a new sbopkg.conf configuration variable, SQDIR,
|
||||||
|
where users can define where saved queues are stored; also, when the user
|
||||||
|
wants to load a saved queue, show a list of available saved queues; thanks
|
||||||
|
to slakmagik for the patch.
|
||||||
+--------------------------+
|
+--------------------------+
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ LOCALREPO=${LOCALREPO:-/home/sbo}
|
||||||
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
|
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
|
||||||
export TMP=${TMP:-/tmp/SBo}
|
export TMP=${TMP:-/tmp/SBo}
|
||||||
export OUTPUT=${OUTPUT:-/tmp}
|
export OUTPUT=${OUTPUT:-/tmp}
|
||||||
SQDIR=$TMP/queues
|
QUEUEDIR=$TMP/queues
|
||||||
KEEPLOG=YES
|
KEEPLOG=YES
|
||||||
LOGFILE=$TMP/sbopkg-build-log
|
LOGFILE=$TMP/sbopkg-build-log
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
|
|
|
@ -79,7 +79,7 @@ config_check () {
|
||||||
|
|
||||||
KEEPLOG=$(echo "$KEEPLOG" | tr [[:lower:]] [[:upper:]])
|
KEEPLOG=$(echo "$KEEPLOG" | tr [[:lower:]] [[:upper:]])
|
||||||
# Some configuration options are mandatory
|
# Some configuration options are mandatory
|
||||||
for VAR in RSYNCMIRROR SLACKVER LOCALREPO SRCDIR TMP OUTPUT SQDIR \
|
for VAR in RSYNCMIRROR SLACKVER LOCALREPO SRCDIR TMP OUTPUT QUEUEDIR \
|
||||||
KEEPLOG LOGFILE DEBUG RSYNCFLAGS WGETFLAGS; do
|
KEEPLOG LOGFILE DEBUG RSYNCFLAGS WGETFLAGS; do
|
||||||
if [ -z "${!VAR}" ]; then
|
if [ -z "${!VAR}" ]; then
|
||||||
MISSING+="$VAR "
|
MISSING+="$VAR "
|
||||||
|
@ -163,8 +163,8 @@ directory_checks () {
|
||||||
"Creating local TMP directory $TMP."
|
"Creating local TMP directory $TMP."
|
||||||
ck_dir "$OUTPUT" \
|
ck_dir "$OUTPUT" \
|
||||||
"Creating local package output directory $OUTPUT."
|
"Creating local package output directory $OUTPUT."
|
||||||
ck_dir "$SQDIR" \
|
ck_dir "$QUEUEDIR" \
|
||||||
"Creating queues directory $SQDIR."
|
"Creating queues directory $QUEUEDIR."
|
||||||
ck_dir "$LOGDIR" \
|
ck_dir "$LOGDIR" \
|
||||||
"Creating log directory $LOGDIR."
|
"Creating log directory $LOGDIR."
|
||||||
|
|
||||||
|
@ -1079,15 +1079,15 @@ load_user_queue () {
|
||||||
local QFS=$TMP/sbopkg-queue-files-selection
|
local QFS=$TMP/sbopkg-queue-files-selection
|
||||||
local QFM=$TMP/sbopkg-queue-files-menu
|
local QFM=$TMP/sbopkg-queue-files-menu
|
||||||
|
|
||||||
if [ -z "$(ls -A $SQDIR 2>/dev/null)" ]; then
|
if [ -z "$(ls -A $QUEUEDIR 2>/dev/null)" ]; then
|
||||||
if [ "$DIAG" = 1 ]; then
|
if [ "$DIAG" = 1 ]; then
|
||||||
dialog --title "ERROR" --msgbox "$(crunch "The queue directory \
|
dialog --title "ERROR" --msgbox "$(crunch "The queue directory \
|
||||||
$SQDIR is empty.")" 8 30
|
$QUEUEDIR is empty.")" 8 30
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
while :; do
|
while :; do
|
||||||
find $SQDIR -type f -printf "\"%P\" \"\"\n" | sort > $QFM
|
find $QUEUEDIR -type f -printf "\"%P\" \"\"\n" | sort > $QFM
|
||||||
dialog --cancel-label "Cancel" --title "$TITLE" \
|
dialog --cancel-label "Cancel" --title "$TITLE" \
|
||||||
--default-item "${USERQUEUE##*/}" --menu \
|
--default-item "${USERQUEUE##*/}" --menu \
|
||||||
"$(crunch "Please choose the queue you would like to load and \
|
"$(crunch "Please choose the queue you would like to load and \
|
||||||
|
@ -1096,7 +1096,7 @@ load_user_queue () {
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
USERQUEUE=$SQDIR/$(cat $QFS)
|
USERQUEUE=$QUEUEDIR/$(cat $QFS)
|
||||||
if [ -e $USERQUEUE ]; then
|
if [ -e $USERQUEUE ]; then
|
||||||
touch $TMP/sbopkg_user_queue.lck
|
touch $TMP/sbopkg_user_queue.lck
|
||||||
# Reading from $USERQUEUE...
|
# Reading from $USERQUEUE...
|
||||||
|
@ -1130,7 +1130,7 @@ save_user_queue () {
|
||||||
if [ "$(cat $TMP/sbopkg-user-queue)" = "" ]; then
|
if [ "$(cat $TMP/sbopkg-user-queue)" = "" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
USERQUEUE="$SQDIR/$(cat $TMP/sbopkg-user-queue)"
|
USERQUEUE="$QUEUEDIR/$(cat $TMP/sbopkg-user-queue)"
|
||||||
if [ ! "$USERQUEUE" = "" ]; then
|
if [ ! "$USERQUEUE" = "" ]; then
|
||||||
if [ -e $USERQUEUE ]; then
|
if [ -e $USERQUEUE ]; then
|
||||||
dialog --title "Error" --yesno "$(crunch "Another file \
|
dialog --title "Error" --yesno "$(crunch "Another file \
|
||||||
|
|
|
@ -90,14 +90,14 @@ The default value of OUTPUT is:
|
||||||
export OUTPUT=${OUTPUT:-/tmp}.
|
export OUTPUT=${OUTPUT:-/tmp}.
|
||||||
|
|
||||||
.TP 5
|
.TP 5
|
||||||
.B SQDIR
|
.B QUEUEDIR
|
||||||
.br
|
.br
|
||||||
This option defines the directory under which saved queue files will
|
This option defines the directory under which saved queue files will
|
||||||
be kept.
|
be kept.
|
||||||
|
|
||||||
The default value of SQDIR is:
|
The default value of QUEUEDIR is:
|
||||||
.br
|
.br
|
||||||
SQDIR=$TMP/queues
|
QUEUEDIR=$TMP/queues
|
||||||
|
|
||||||
.TP 5
|
.TP 5
|
||||||
.B KEEPLOG
|
.B KEEPLOG
|
||||||
|
|
Loading…
Reference in a new issue