aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-22 17:53:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-22 17:53:33 +0000
commitec7b13692619604e476f131b5eb99bfa994ec9cf (patch)
tree272083b1b4cff4ed38099f0314b67ff9bc36c66c
parentbeeb10375270146ef4fa3f9c9f5552a5de1aa8ac (diff)
downloadpaludis-ec7b13692619604e476f131b5eb99bfa994ec9cf.tar.gz
paludis-ec7b13692619604e476f131b5eb99bfa994ec9cf.tar.xz
Use EAPI=0 when EAPI is unset. Improve version metadata generation tests
-rwxr-xr-xebuild/ebuild.bash1
-rw-r--r--paludis/portage_repository_TEST.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/ebuild/ebuild.bash b/ebuild/ebuild.bash
index 73d5eb8..8727a0a 100755
--- a/ebuild/ebuild.bash
+++ b/ebuild/ebuild.bash
@@ -143,6 +143,7 @@ ebuild_load_ebuild()
RDEPEND="${RDEPEND} ${E_RDEPEND}"
PDEPEND="${PDEPEND} ${E_PDEPEND}"
KEYWORDS="${KEYWORDS} ${E_KEYWORDS}"
+ [[ ${EAPI-unset} == "unset" ]] && EAPI="0"
}
perform_hook()
diff --git a/paludis/portage_repository_TEST.cc b/paludis/portage_repository_TEST.cc
index 57acd5f..08eb993 100644
--- a/paludis/portage_repository_TEST.cc
+++ b/paludis/portage_repository_TEST.cc
@@ -525,6 +525,7 @@ namespace test_cases
m = repo->version_metadata(QualifiedPackageName("cat-one/pkg-one"), VersionSpec("1"));
TEST_CHECK_EQUAL(m->get<vm_description>(), "The Description");
+ TEST_CHECK_EQUAL(m->get<vm_eapi>(), "0");
}
}
} test_portage_repository_metadata_uncached;