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

Diff of /eclass/savedconfig.eclass

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

Revision 1.8 Revision 1.9
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.8 2007/08/25 19:23:16 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.9 2008/03/20 16:23:42 tove Exp $
4 4
5# @ECLASS: savedconfig.eclass 5# @ECLASS: savedconfig.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: common API for saving/restoring complex configuration files 8# @BLURB: common API for saving/restoring complex configuration files
112 treecopy . "${dest}" || die "Failed to restore ${found} to $1" 112 treecopy . "${dest}" || die "Failed to restore ${found} to $1"
113 popd > /dev/null 113 popd > /dev/null
114 elif [[ -a {found} ]]; then 114 elif [[ -a {found} ]]; then
115 die "do not know how to handle non-file/directory ${found}" 115 die "do not know how to handle non-file/directory ${found}"
116 else 116 else
117 eerror "No saved config to restore - please remove USE=saveconfig or" 117 eerror "No saved config to restore - please remove USE=savedconfig or"
118 eerror "provide a configuration file in ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PN}" 118 eerror "provide a configuration file in ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PN}"
119 die "config file needed when USE=savedconfig is specified" 119 die "config file needed when USE=savedconfig is specified"
120 fi 120 fi
121} 121}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20