mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
Fix typos in code comments
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
ffff094126
commit
fd86c62db8
@ -80,7 +80,7 @@ test_repo_db_file () {
|
|||||||
return 0 # YES
|
return 0 # YES
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
return 0 # YES - No database file is also aloud.
|
return 0 # YES - No database file is also allowed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 1 # NO
|
return 1 # NO
|
||||||
@ -141,7 +141,7 @@ db_write_entry()
|
|||||||
startdir
|
startdir
|
||||||
|
|
||||||
local OLDIFS="$IFS"
|
local OLDIFS="$IFS"
|
||||||
# IFS (field seperator) is only the newline character
|
# IFS (field separator) is only the newline character
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ gstmpdir=$(mktemp -d /tmp/repo-add.XXXXXXXXXX) || (\
|
|||||||
exit 1)
|
exit 1)
|
||||||
|
|
||||||
success=0
|
success=0
|
||||||
# parse arguements
|
# parse arguments
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [ "$arg" == "--force" -o "$arg" == "-f" ]; then
|
if [ "$arg" == "--force" -o "$arg" == "-f" ]; then
|
||||||
FORCE=1
|
FORCE=1
|
||||||
@ -318,7 +318,7 @@ for arg in "$@"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# if all operations were a success, rezip database
|
# if all operations were a success, re-zip database
|
||||||
if [ $success -eq 1 ]; then
|
if [ $success -eq 1 ]; then
|
||||||
msg "$(gettext "Creating updated database file %s")" "$REPO_DB_FILE"
|
msg "$(gettext "Creating updated database file %s")" "$REPO_DB_FILE"
|
||||||
pushd "$gstmpdir" 2>&1 >/dev/null
|
pushd "$gstmpdir" 2>&1 >/dev/null
|
||||||
|
@ -132,7 +132,7 @@ gstmpdir=$(mktemp -d /tmp/repo-remove.XXXXXXXXXX) || (\
|
|||||||
exit 1)
|
exit 1)
|
||||||
|
|
||||||
success=0
|
success=0
|
||||||
# parse arguements
|
# parse arguments
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [ -z "$REPO_DB_FILE" ]; then
|
if [ -z "$REPO_DB_FILE" ]; then
|
||||||
REPO_DB_FILE=$(readlink -f "$arg")
|
REPO_DB_FILE=$(readlink -f "$arg")
|
||||||
@ -154,7 +154,7 @@ for arg in "$@"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# if all operations were a success, rezip database
|
# if all operations were a success, re-zip database
|
||||||
if [ $success -eq 1 ]; then
|
if [ $success -eq 1 ]; then
|
||||||
msg "$(gettext "Creating updated database file '%s'...")" "$REPO_DB_FILE"
|
msg "$(gettext "Creating updated database file '%s'...")" "$REPO_DB_FILE"
|
||||||
pushd "$gstmpdir" 2>&1 >/dev/null
|
pushd "$gstmpdir" 2>&1 >/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user