From 5a5a87d4bf49d34d16aa8eea55259307984eb212 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 30 Jun 2011 09:05:48 +0000 Subject: [PATCH] * usr/lib/byobu/.common, usr/lib/byobu/.constants: - ensure that libraries only get included once --- debian/changelog | 2 ++ usr/lib/byobu/.common | 7 +++++-- usr/lib/byobu/.constants | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index b42060ac..2a832cb3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,8 @@ byobu (4.18) unreleased; urgency=low usr/share/byobu/profiles/tmux, usr/share/byobu/windows/common: - use a BYOBU_BACKEND environment variable, to support both screen and tmux + * usr/lib/byobu/.common, usr/lib/byobu/.constants: + - ensure that libraries only get included once -- Dustin Kirkland Wed, 29 Jun 2011 02:26:28 +0000 diff --git a/usr/lib/byobu/.common b/usr/lib/byobu/.common index 1129b478..0075676a 100644 --- a/usr/lib/byobu/.common +++ b/usr/lib/byobu/.common @@ -18,5 +18,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. "${BYOBU_PREFIX}/lib/${PKG}/.shutil" -. "${BYOBU_PREFIX}/lib/${PKG}/.constants" +if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then + . "${BYOBU_PREFIX}/lib/${PKG}/.shutil" + . "${BYOBU_PREFIX}/lib/${PKG}/.constants" + BYOBU_INCLUDED_LIBS=1 +fi diff --git a/usr/lib/byobu/.constants b/usr/lib/byobu/.constants index 34ff9b9a..92c5707b 100755 --- a/usr/lib/byobu/.constants +++ b/usr/lib/byobu/.constants @@ -47,7 +47,7 @@ fi # Some users build and install byobu themselves, rather than from a distro [ -n "$BYOBU_PREFIX" ] || BYOBU_PREFIX="/usr" -# UTF8 support in the hardstatus is coming one day in screen +# UTF8 support in the hardstatus is coming one day in Screen if [ "$UTF8" = "1" ]; then ICON_C="℃" ICON_F="℉"