var topdir = path.normalize(global.repoproxy.cacheDir + "/" + name + "/");
function fileCheck(i) {
- //console.log("checking file: ", files[i]);
+ console.log("checking file: ", files[i]);
var cfile = files[i].replace(topdir, "");
var ctime_t = new Date();
}
- fileCheck(0)
+
+ if(typeof files[0] != 'undefined') fileCheck(0)
+ else console.log("Skipping file check as there are none... apprently?");
}
exports.maintain = maintain;
\ No newline at end of file
# port to listen on for requests
listenport:8008
-ploop:asdf
+#ploop:asdf
# a repo definition
# repo:base_url:type:upstream_url:updateinterval:packageage
# were:
# updateinterval is how often repo meta data is refreshed (days)
# packageage is how long a package will go unread before it gets deleted (days)
repo:fedora:yum:http://ftp.iinet.net.au/pub/fedora/linux/:7:120
-repo:ubuntu:apt:http://ftp.iinet.net.au/pub/ubuntu/:1:120
\ No newline at end of file
+repo:ubuntu:apt:http://ftp.iinet.net.au/pub/ubuntu/:1:120