 			if file is '.gitignore'
 				fileCallback null
 				return
-
+			
 			packageFolder = config.packageFolder + file
 			logger.log "debug", "Parsing #{packageFolder}"
 			fs.stat packageFolder, (err, packageFolderStat) ->

		writer.writeComment "This list was presented by Tims Package Server #{serverVersion}"
		do writer.endElement
		do writer.endDocument
	res.end (do writer.toString).replace /\{\{packageServerHost\}\}/g, "#{req.protocol}://#{req.header 'host'}"
	
app.all /^\/([a-z0-9_-]+\.[a-z0-9_-]+(?:\.[a-z0-9_-]+)+)\/([0-9]+\.[0-9]+\.[0-9]+(?:_(?:a|alpha|b|beta|d|dev|rc|pl)_[0-9]+)?)/i, (req, res) ->
	res.attachment "#{req.params[0]}_#{req.params[1]}.tar"

	app.get '/update', (req, res) ->
		logger.log "info", 'Manual update was requested'
		readPackages ->
			res.redirect 303, config.basePath ? '/'
			
readPackages ->
	app.listen config.port
	