aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-11 16:45:34 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-11 16:45:34 +0100
commit7fc7255a687de8f307993565f47924ff16649ab2 (patch)
tree2eba70a4760664996c18a697c6242554fd823f68
parent4374da1a4a25b2d175e933a124d9977fe47cf102 (diff)
downloadpaludis-7fc7255a687de8f307993565f47924ff16649ab2.tar.gz
paludis-7fc7255a687de8f307993565f47924ff16649ab2.tar.xz
pbins need categories
Fixes: ticket:934
-rw-r--r--paludis/repositories/e/e_repository.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index b5dfec6..8c700d7 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -113,6 +113,7 @@
#include <dlfcn.h>
#include <stdint.h>
+#include <fcntl.h>
#include "config.h"
@@ -2857,6 +2858,12 @@ ERepository::merge(const MergeParams & m)
}
while (false);
}
+
+ if (! has_category_named(m.package_id()->name().category()))
+ {
+ SafeOFStream s(_imp->layout->categories_file(), O_CREAT | O_WRONLY | O_CLOEXEC | O_APPEND);
+ s << m.package_id()->name().category() << std::endl;
+ }
}
bool