[gnome-continuous] Add missing zipfile detection checks
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] Add missing zipfile detection checks
- Date: Fri, 12 Feb 2016 15:50:54 +0000 (UTC)
commit dcb658c3508e52e54696943845741032b4602ac2
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Feb 12 15:50:27 2016 +0000
Add missing zipfile detection checks
src/js/vcs.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/js/vcs.js b/src/js/vcs.js
index 55dede7..fef8338 100644
--- a/src/js/vcs.js
+++ b/src/js/vcs.js
@@ -81,8 +81,8 @@ function getVcsCheckout(mirrordir, component, dest, cancellable, params) {
revision = component['revision'];
moduleMirror = getMirrordir(mirrordir, keytype, uri);
addUpstream = true;
- } else if (keytype == 'tarball') {
- revision = 'tarball-import-' + component['checksum'];
+ } else if (keytype == 'tarball' || keytype == 'zipfile') {
+ revision = keytype + '-import-' + component['checksum'];
moduleMirror = getMirrordir(mirrordir, 'tarball', component['name']);
addUpstream = false;
} else {
@@ -130,7 +130,7 @@ function parseSrcKey(srckey) {
throw new Error("Invalid SRC uri=" + srckey);
}
let keytype = srckey.substr(0, idx);
- if (!(keytype == 'git' || keytype == 'local' || keytype == 'tarball')) {
+ if (!(keytype == 'git' || keytype == 'local' || keytype == 'tarball' || keytype == 'zipfile')) {
throw new Error("Unsupported SRC uri=" + srckey);
}
let uri = srckey.substr(idx+1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]