Permalink
Browse files

narcissus: clean up .bb and .txt files after the build

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
1 parent 00973d4 commit 8328debc209c13df6d9d765294c81e5aebc6b05e @koenkooi koenkooi committed Feb 27, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 backend.php
View
@@ -135,9 +135,12 @@ function show_image_link($machine, $name, $imagesuffix, $manifest, $sdk, $sdkarc
rename($location, "$deploydir/$value");
$imgsize = round(filesize("$deploydir/$value") / (1024 * 1024),2);
$imagestring .= "<br/><a href='$deploydir/$value'>$value</a> [$imgsize MiB]: This is the rootfs '$name' for $machine you just built. This will get automatically deleted after 2 days.<br/>";
+
+ rename("work/$machine/$name-image.bb", "$deploydir/$name-image.bb");
+ rename("work/$machine/$name-image.txt", "$deploydir/$name-image.txt");
+
if($manifest == "yes") {
rename("work/$machine/$name-image-manifest.html", "$deploydir/$name-image-manifest.html");
- rename("work/$machine/$name-image.bb", "$deploydir/$name-image.bb");
$imagestring .= "You can also have a look at the software <a href='$deploydir/$name-image-manifest.html' target='manifest'>manifest</a> for this rootfs<br/>";
}
$foundimage = 1;

0 comments on commit 8328deb

Please sign in to comment.