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

Diff of /eclass/savedconfig.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
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/savedconfig.eclass,v 1.3 2007/02/05 09:55:22 dragonheart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.4 2007/02/21 20:49:45 dragonheart Exp $
4 4
5# Original Author: Daniel Black <dragonheart@gentoo.org> 5# Original Author: Daniel Black <dragonheart@gentoo.org>
6# 6#
7# Purpose: Define an interface for ebuilds to save and restore 7# Purpose: Define an interface for ebuilds to save and restore
8# complex configuration that may be edited by users. 8# complex configuration that may be edited by users.
103 popd 103 popd
104 elif [[ -a {found} ]]; then 104 elif [[ -a {found} ]]; then
105 die "do not know how to handle non-file/directory ${found}" 105 die "do not know how to handle non-file/directory ${found}"
106 else 106 else
107 eerror "No saved config to restore - please remove USE=saveconfig or" 107 eerror "No saved config to restore - please remove USE=saveconfig or"
108 die "provide a configuration file in ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PN}" 108 eerror "provide a configuration file in ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PN}"
109 die "config file needed when USE=savedconfig is specified"
109 fi 110 fi
110} 111}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20