# Copyright 2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/vdrmirror.eclass,v 1.1 2005/05/16 12:52:34 zzam Exp $ # # Matthias Schwarzott # # Changelog # # 16.05.2005 initial version MS ECLASS=vdrmirror INHERITED="$INHERITED $ECLASS" vdrmirror_portage_bugfix() { local realmirror="http://gentoo.fh-luh.de/files/" local OLD_SRC="${SRC_URI}" SRC_URI="" for uri in ${OLD_SRC}; do if [ "${uri:0:18}" == "mirror://vdrfiles/" ]; then uri="${realmirror}${uri:18}" fi SRC_URI="${SRC_URI} ${uri}" done }