/[gentoo-x86]/eclass/webapp.eclass
Gentoo

Diff of /eclass/webapp.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.19 Revision 1.20
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.19 2004/05/22 18:45:13 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.20 2004/05/22 18:56:58 stuart Exp $
4# 4#
5# eclass/webapp.eclass 5# eclass/webapp.eclass
6# Eclass for installing applications to run under a web server 6# Eclass for installing applications to run under a web server
7# 7#
8# Part of the implementation of GLEP #11 8# Part of the implementation of GLEP #11
352 # okay, whatever is there, it isn't webapp-config-compatible 352 # okay, whatever is there, it isn't webapp-config-compatible
353 ewarn 353 ewarn
354 ewarn "Whatever is in $my_dir, it's not" 354 ewarn "Whatever is in $my_dir, it's not"
355 ewarn "compatible with webapp-config." 355 ewarn "compatible with webapp-config."
356 ewarn 356 ewarn
357 357 ewarn "This ebuild may be overwriting important files."
358 my_output="`qpkg -nc -v -f $my_dir`" 358 ewarn
359 if [ -n "$my_output" ]; then
360 eerror "Please remove $my_output and re-emerge."
361 else
362 eerror "Please remove the contents of $my_dir, and then re-emerge."
363 fi
364 die "Cannot upgrade contents of $my_dir"
365 elif [ "`echo $my_output | awk '{ print $1 }'`" != "$PN" ]; then 359 elif [ "`echo $my_output | awk '{ print $1 }'`" != "$PN" ]; then
366 eerror "$my_dir contains $my_output" 360 eerror "$my_dir contains $my_output"
367 eerror "I cannot upgrade that" 361 eerror "I cannot upgrade that"
368 die "Cannot upgrade contents of $my_dir" 362 die "Cannot upgrade contents of $my_dir"
369 else 363 else

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20