diff options
author | Martin Stransky <stransky@redhat.com> | 2012-07-12 15:22:36 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2012-07-12 15:22:36 +0200 |
commit | d38e8d325c1c18947ef66b29cde08178bd3db71c (patch) | |
tree | 946cea2a3cc67a56a661d6fbab89f7503c7a8fc5 /firefox.sh.in | |
parent | Fixed typo in comment (diff) | |
download | librewolf-fedora-ff-d38e8d325c1c18947ef66b29cde08178bd3db71c.tar.gz librewolf-fedora-ff-d38e8d325c1c18947ef66b29cde08178bd3db71c.tar.bz2 librewolf-fedora-ff-d38e8d325c1c18947ef66b29cde08178bd3db71c.zip |
finished the langpack fix
Diffstat (limited to 'firefox.sh.in')
-rw-r--r-- | firefox.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firefox.sh.in b/firefox.sh.in index d89d4f2..6004ea6 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -198,6 +198,11 @@ if [ $MOZILLA_DOWN -ne 0 ]; then local langpack=langpack-${language}@firefox.mozilla.org.xpi if [ -f $MOZ_LANGPACKS_DIR/$langpack ]; then rm -rf $MOZ_EXTENSIONS_PROFILE_DIR/$langpack + # If the target file is a symlink (the fallback langpack), + # install the original file instead of the fallback one + if [ -h $MOZ_LANGPACKS_DIR/$langpack ]; then + langpack=`readlink $MOZ_LANGPACKS_DIR/$langpack` + fi ln -s $MOZ_LANGPACKS_DIR/$langpack \ $MOZ_EXTENSIONS_PROFILE_DIR/$langpack echo $MOZ_EXTENSIONS_PROFILE_DIR/$langpack > $FEDORA_LANGPACK_CONFIG |