summaryrefslogtreecommitdiffstats
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-02-20 18:57:46 -0600
committerDan McGee <dan@archlinux.org>2008-02-20 18:58:04 -0600
commit4bd52f3fe4d21fc4d54aba7b7c5d3134d69f9341 (patch)
tree0174e2bcf440f66cc94d75c4840bac3862bdb926 /scripts/repo-add.sh.in
parent92ab7c33fb4d72eba070636f620f595dc4650ee9 (diff)
parent420c8846b984b5ca8ddd27ff7b799ec77fbbc2a4 (diff)
downloadpacman-4bd52f3fe4d21fc4d54aba7b7c5d3134d69f9341.tar.xz
Merge branch 'maint'
Remove gettext() function addition from gensync and updatesync in master as gettext is no longer used in them anyway.
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 00eec7ec..f837262d 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -247,6 +247,13 @@ db_write_entry()
# PROGRAM START
+# determine whether we have gettext; make it a no-op if we do not
+if [ ! $(type -t gettext) ]; then
+ gettext() {
+ echo "$@"
+ }
+fi
+
# check for help flags
if [ "$1" = "-h" -o "$1" = "--help" ]; then
usage