aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Egilsson2010-01-19 07:30:10 +0000
committerEinar Egilsson2010-01-19 07:30:10 +0000
commit68848a6d366282ae659ac9b00c97096fe1d41df5 (patch)
tree466117543571cc07e7579d2eeaec7db1429bc1c4
parenta77582e3dd9b2d1be28eeda6a197e80d68267a53 (diff)
Redirector v2.02
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@346 119bf307-c92d-0410-89bd-8f53e6181181
-rw-r--r--build.py2
-rw-r--r--chrome/content/code/redirector.prototype.js8
-rw-r--r--install.rdf4
3 files changed, 7 insertions, 7 deletions
diff --git a/build.py b/build.py
index d75d1e4..bd561d1 100644
--- a/build.py
+++ b/build.py
@@ -6,7 +6,7 @@ for f in os.listdir('.'):
os.system(r'xpidl -m typelib -e ..\%s %s' % (f[:-3] + 'xpt',f))
os.chdir(r'..\..')
-xpi = zipfile.ZipFile('redirector-2.0.1.xpi','w')
+xpi = zipfile.ZipFile('redirector-2.0.2.xpi','w')
for (root, folders, files) in os.walk('.'):
if not '.svn' in root:
for f in files:
diff --git a/chrome/content/code/redirector.prototype.js b/chrome/content/code/redirector.prototype.js
index bed05dc..d7b4bc8 100644
--- a/chrome/content/code/redirector.prototype.js
+++ b/chrome/content/code/redirector.prototype.js
@@ -247,7 +247,7 @@ Redirector.prototype = {
var data = this._prefs.redirects;
var version = this._prefs.version;
this._loadStrings();
-
+ var currentVersion = '2.0.2';
//Here update checks are handled
if (version == 'undefined') { //Either a fresh install of Redirector, or first time install of v2.0
if (data) { //There is some data in redirects, we are upgrading from a previous version, need to upgrade data
@@ -263,9 +263,9 @@ Redirector.prototype = {
}
this._prefs.redirects = newArr.join(':::');
}
- this._prefs.version = '2.0.1';
- } else if (version == '2.0') {
- this._prefs.version = '2.0.1';
+ this._prefs.version = currentVersion;
+ } else if (version == '2.0' || version == '2.0.1') {
+ this._prefs.version = currentVersion;
}
//Update finished
diff --git a/install.rdf b/install.rdf
index 457cee8..a95dc44 100644
--- a/install.rdf
+++ b/install.rdf
@@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>redirector@einaregilsson.com</em:id>
<em:name>Redirector</em:name>
- <em:version>2.0.1</em:version>
+ <em:version>2.0.2</em:version>
<em:creator>Einar Egilsson</em:creator>
<em:description>Automatically redirects to user-defined urls on certain pages</em:description>
<em:homepageURL>http://tech.einaregilsson.com/projects/redirector/</em:homepageURL>
@@ -15,7 +15,7 @@
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- firefox -->
<em:minVersion>3.5</em:minVersion>
- <em:maxVersion>3.5.*</em:maxVersion>
+ <em:maxVersion>3.6.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>