[gnome-ostree] jsondb: Hide parseVersion
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] jsondb: Hide parseVersion
- Date: Sun, 10 Feb 2013 19:22:58 +0000 (UTC)
commit 7d760737aa81eaa17565affba61a0686cef1cbfe
Author: Colin Walters <walters verbum org>
Date: Sun Feb 10 14:21:17 2013 -0500
jsondb: Hide parseVersion
src/ostbuild/js/jsondb.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ostbuild/js/jsondb.js b/src/ostbuild/js/jsondb.js
index d1d4b8d..ece07d5 100644
--- a/src/ostbuild/js/jsondb.js
+++ b/src/ostbuild/js/jsondb.js
@@ -33,7 +33,7 @@ const JsonDB = new Lang.Class({
this._maxVersions = 5;
},
- parseVersion: function(basename) {
+ _parseVersion: function(basename) {
let match = this._re.exec(basename);
if (!match)
throw new Error("No JSONDB version in " + basename);
@@ -41,7 +41,7 @@ const JsonDB = new Lang.Class({
},
parseVersionStr: function(basename) {
- let [major, minor] = this.parseVersion(basename);
+ let [major, minor] = this._parseVersion(basename);
return Format.vprintf('%d.%d', [major, minor]);
},
@@ -78,7 +78,7 @@ const JsonDB = new Lang.Class({
getPreviousPath: function(path) {
let name = path.get_basename();
- let [target_major, target_minor] = this.parseVersion(name);
+ let [target_major, target_minor] = this._parseVersion(name);
let files = this._getAll();
let prev = null;
let found = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]