diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-08-31 19:52:58 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-08-31 19:52:58 -0700 |
commit | ce501b36d7078db059c606d3b4f38637ad09528e (patch) | |
tree | 6b60a4a21d020516d6158bbb580ff219e4e0a2f6 /bin/ebuild-helpers/dosed | |
parent | 6b8855016820fb84bac25720d99bf8e42c9e9469 (diff) | |
download | portage-ce501b36d7078db059c606d3b4f38637ad09528e.tar.gz portage-ce501b36d7078db059c606d3b4f38637ad09528e.tar.bz2 portage-ce501b36d7078db059c606d3b4f38637ad09528e.zip |
xml/metadata: implement XMLParser.doctype()
Avoid deprecation warnings again, like in commit
63035acd702ab0cdaac31e33676b5a20a91eae47.
Diffstat (limited to 'bin/ebuild-helpers/dosed')
-rwxr-xr-x | bin/ebuild-helpers/dosed | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ebuild-helpers/dosed b/bin/ebuild-helpers/dosed index afc949ba5..00cf5da17 100755 --- a/bin/ebuild-helpers/dosed +++ b/bin/ebuild-helpers/dosed @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 if [[ $# -lt 1 ]] ; then @@ -7,12 +7,14 @@ if [[ $# -lt 1 ]] ; then exit 1 fi +case "$EAPI" in 0|1|2) ED=${D} ;; esac + ret=0 file_found=0 -mysed="s:${D}::g" +mysed="s:${ED}::g" for x in "$@" ; do - y=$D${x#/} + y=$ED${x#/} if [ -e "${y}" ] ; then if [ -f "${y}" ] ; then file_found=1 |