summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2003-09-22 21:39:11 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2003-09-22 21:39:11 +0000
commit18883c8ee6180a0a5d6f0a021232b6cc499e0aae (patch)
tree7300330fe982ac4b2db687872a65c8fffdea3fba /eclass/eutils.eclass
parentmodules reorganized in proper order. (diff)
downloadgentoo-2-18883c8ee6180a0a5d6f0a021232b6cc499e0aae.tar.gz
gentoo-2-18883c8ee6180a0a5d6f0a021232b6cc499e0aae.tar.bz2
gentoo-2-18883c8ee6180a0a5d6f0a021232b6cc499e0aae.zip
Fixing bug in check_license.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 70f47966f1d0..24b589c4ce4e 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.56 2003/09/22 21:08:27 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.57 2003/09/22 21:39:11 wolf31o2 Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -937,6 +937,9 @@ check_license() {
# here is where we check for the license...
# if we don't find one, we ask the user for it
+ if [ ! -d /usr/share/licenses ]; then
+ mkdir -p /usr/share/licenses
+ fi
if [ -f /usr/share/licenses/${LICENSE} ]; then
einfo "The license for this application has already been accepted."
else