diff options
authorintrigeri <>2018-12-01 10:14:11 +0000
committerintrigeri <>2018-12-01 10:18:11 +0000
commit092719e99301f448cc1c11c54f1ddfd9f5b8f7c3 (patch)
parent72e983e9499d2ffc09f3f87a67a90c2d5b991ebb (diff)
Remove obsolete version and broken --version support.
Since commit f071b0f41272196712facbe1a5052ec39d7608ad, we ignore command line arguments so there's no way to use --version. Given the "__version__" variable and the "version" OptionParser keyword argument are only used to support --version, let's remove all this. Besides, we failed to update that version number so even if it was working, --version would always output a wrong value. Note that __version__ might make sense in a module (PEP 396, deferred) but this program is not a module.
1 files changed, 1 insertions, 3 deletions
diff --git a/tails-installer b/tails-installer
index 8fb250d..8b67560 100755
--- a/tails-installer
+++ b/tails-installer
@@ -25,11 +25,9 @@ import sys
from tails_installer import _
-__version__ = '3.11.8'
def parse_args():
from optparse import OptionParser
- parser = OptionParser(version=__version__)
+ parser = OptionParser()
parser.add_option('-c', '--console', dest='console', action='store_true',
help='Use console mode instead of the GUI')
parser.add_option('-f', '--force', dest='force', action='store',