var path = require("path");
var log = require("./log.js");
+
+
+/*
+ * For APT repos, we expire anything with .* /dist/ .* in thename
+ */
function maintain(name, repoinfo, files) {
//log.debug("doing apt clean for ", repoinfo);
// make sure we have a metadata file for our file
- fs.stat(metafile, function(err, stats)) {
+ fs.stat(metafile, function(err, stats) {
if(err) {
log.debug("file (%s) has no metadata file - moving for cleanup");
cache.moveToCleanup(files[i]);
cache.moveToCleanup(metafile);
}
- }
+ });
// check meta data
fs.stat(files[i], function(err, stats) {