1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 13:10:09 +02:00

update some packages and remove node_modules from repo

This commit is contained in:
s2
2019-03-09 16:38:04 +01:00
parent 3dcadb39c2
commit d24a82e91e
94766 changed files with 290 additions and 858252 deletions

View File

@@ -1,30 +0,0 @@
(function() {
var callMksnapshot, getPathOfMksnapshot, mksnapshot, stripVersion;
callMksnapshot = require('./mksnapshot-call');
getPathOfMksnapshot = require('./mksnapshot-path');
stripVersion = function(version) {
var versions;
if (version[0] === 'v') {
version = version.substr(1);
}
versions = version.split('.');
versions[2] = '0';
return versions.join('.');
};
mksnapshot = function(content, target, version, arch, builddir, callback) {
version = stripVersion(version);
return getPathOfMksnapshot(version, arch, builddir, function(error, mksnapshot) {
if (error) {
return callback(error);
}
return callMksnapshot(mksnapshot, content, target, builddir, callback);
});
};
module.exports = mksnapshot;
}).call(this);