aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-15 00:51:01 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-15 00:51:01 +0000
commit9b2c102e0c13f7f00adb8327b99332ed83e38edf (patch)
treed328866380c74cb5f2dbbae4f524b28ee49d6fb0
parent111493b021f369e994a0db73b90817082b83cffc (diff)
downloadpaludis-9b2c102e0c13f7f00adb8327b99332ed83e38edf.tar.gz
paludis-9b2c102e0c13f7f00adb8327b99332ed83e38edf.tar.xz
sets_list too
-rw-r--r--paludis/environments/paludis/paludis_environment.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/environments/paludis/paludis_environment.cc b/paludis/environments/paludis/paludis_environment.cc
index 902a80b..e550cd5 100644
--- a/paludis/environments/paludis/paludis_environment.cc
+++ b/paludis/environments/paludis/paludis_environment.cc
@@ -677,10 +677,10 @@ PaludisEnvironment::sets_list() const
for (DirIterator d(FSEntry(_imp->config->config_dir()) / "sets"), d_end ;
d != d_end ; ++d)
{
- if (! IsFileWithExtension(".conf")(*d))
- continue;
-
- result->insert(SetName(strip_trailing_string(d->basename(), ".conf")));
+ if (IsFileWithExtension(".conf")(*d))
+ result->insert(SetName(strip_trailing_string(d->basename(), ".conf")));
+ else if (IsFileWithExtension(".bash")(*d))
+ result->insert(SetName(strip_trailing_string(d->basename(), ".bash")));
}
return result;