working on repo maintenance routines
authorPaul J R <me@pjr.cc>
Sat, 29 Jun 2013 05:36:37 +0000 (15:36 +1000)
committerPaul J R <me@pjr.cc>
Sat, 29 Jun 2013 05:36:37 +0000 (15:36 +1000)
lib/repo-apt.js
lib/repo-yum.js

index 814f260..f852086 100644 (file)
@@ -4,6 +4,11 @@ var url = require("url");
 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);
        
index 38a8f87..a78be2e 100644 (file)
@@ -86,13 +86,13 @@ function maintain(name, repoinfo, files) {
                        
                        
                        // 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) {