aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-12-26 18:48:31 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2009-12-26 18:48:31 +0000
commitc168ee42ab22b89a632714ed2632a4134812a5bb (patch)
tree222964a7074206434e2481dc75b74c4818206e89
parent80d9890571ce00e2374ab7320ee037ad893dde74 (diff)
downloadpaludis-c168ee42ab22b89a632714ed2632a4134812a5bb.tar.gz
paludis-c168ee42ab22b89a632714ed2632a4134812a5bb.tar.xz
Update PF and CATEGORY files after moving
-rw-r--r--paludis/repositories/e/vdb_repository.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index 73dd625..593f1fa 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -1451,7 +1451,13 @@ VDBRepository::perform_updates()
failed = true;
}
else
+ {
from_dir.rename(to_dir);
+ SafeOFStream pf(to_dir / "PF");
+ pf << m->second.package() << "-" << m->first->version() << std::endl;
+ SafeOFStream category(to_dir / "CATEGORY");
+ category << m->second.category() << std::endl;
+ }
}
}
else