summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-23 00:22:58 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-23 00:22:58 +0200
commitb4c4ff2e88ca8f865721d4523cdfa6137aae4a59 (patch)
treef256ed2e3c789e5461872dde38d68abe9bcd7ede
parentba58baea53b70a3a6604c2671b7a97585d7dbd3d (diff)
downloadpython-apt-b4c4ff2e88ca8f865721d4523cdfa6137aae4a59.tar.gz
* DistUpgrade/dist-upgrade.py:
- fixed in the argument ordering
-rwxr-xr-xDistUpgrade/dist-upgrade.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/DistUpgrade/dist-upgrade.py b/DistUpgrade/dist-upgrade.py
index 918dff02..d7ce182b 100755
--- a/DistUpgrade/dist-upgrade.py
+++ b/DistUpgrade/dist-upgrade.py
@@ -12,9 +12,10 @@ if __name__ == "__main__":
parser = OptionParser()
parser.add_option("-c", "--cdrom", dest="cdromPath", default=None,
help="Use the given path to search for a cdrom with upgradable packages")
+ parser.add_option("--have-backports", dest="haveBackports",
+ action="store_true"default=False)
parser.add_option("--with-network", dest="withNetwork",action="store_true")
- parser.add_option("--without-network", dest="withNetwork",action="store_false", default=True)
- parser.add_option("--have-backports", dest="haveBackports", action="store_true")
+ parser.add_option("--without-network", dest="withNetwork",action="store_false")
(options, args) = parser.parse_args()
if not os.path.exists("/var/log/dist-upgrade"):