aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository.cc
diff options
context:
space:
mode:
authorAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-02-06 23:07:11 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-02-06 23:07:11 +0000
commit70e7b4d8c51be1aa06bdd6cecb2fc375185bc69a (patch)
treecf955fe97b34b7d9507b886bea26836e77f7d9b9 /paludis/repositories/e/exndbam_repository.cc
parentf22507ad73e28b4555c02cf11d755df1a819cffc (diff)
downloadpaludis-70e7b4d8c51be1aa06bdd6cecb2fc375185bc69a.tar.gz
paludis-70e7b4d8c51be1aa06bdd6cecb2fc375185bc69a.tar.xz
Add sorting by i-node for DirIterator
Diffstat (limited to 'paludis/repositories/e/exndbam_repository.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/repositories/e/exndbam_repository.cc b/paludis/repositories/e/exndbam_repository.cc
index bc11a4950..480641a5f 100644
--- a/paludis/repositories/e/exndbam_repository.cc
+++ b/paludis/repositories/e/exndbam_repository.cc
@@ -338,7 +338,8 @@ ExndbamRepository::merge(const MergeOptions & m)
if (! merger.check())
{
- for (DirIterator d(target_ver_dir, false), d_end ; d != d_end ; ++d)
+ for (DirIterator d(target_ver_dir, DirIteratorOptions() + dio_include_dotfiles), d_end
+ ; d != d_end ; ++d)
FSEntry(*d).unlink();
target_ver_dir.rmdir();
throw InstallActionError("Not proceeding with install due to merge sanity check failing");
@@ -450,7 +451,7 @@ ExndbamRepository::perform_uninstall(const tr1::shared_ptr<const ERepositoryID>
}
}
- for (DirIterator d(ver_dir, false), d_end ; d != d_end ; ++d)
+ for (DirIterator d(ver_dir, DirIteratorOptions() + dio_include_dotfiles), d_end ; d != d_end ; ++d)
FSEntry(*d).unlink();
ver_dir.rmdir();