summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-02-25 19:51:05 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-02-25 19:51:05 +0100
commita94263ba750c561ecf40241104970bc303cbc0b7 (patch)
treeadd1c0b07745a5c27a120407624370380905fa0a
parent6563d0d4899d5b787842f16135fd05da878cfb45 (diff)
* cmdline/apt-mark:
- don't crash if no arguments are given (Closes: #570962)
-rwxr-xr-xcmdline/apt-mark4
-rw-r--r--debian/changelog2
2 files changed, 6 insertions, 0 deletions
diff --git a/cmdline/apt-mark b/cmdline/apt-mark
index 2326ece38..f4f6aa576 100755
--- a/cmdline/apt-mark
+++ b/cmdline/apt-mark
@@ -76,6 +76,10 @@ if __name__ == "__main__":
help="print verbose status messages to stdout")
(options, args) = parser.parse_args()
+ if not args:
+ parser.print_help()
+ sys.exit(1)
+
# get the state-file
if not options.filename:
STATE_FILE = apt_pkg.Config.FindDir("Dir::State") + "extended_states"
diff --git a/debian/changelog b/debian/changelog
index 2b5f6fd25..c59b81af5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
apt (0.7.26) UNRELEASED; urgency=low
* Switch to dpkg-source 3.0 (native) format
+ * cmdline/apt-mark:
+ - don't crash if no arguments are given (Closes: #570962)
-- David Kalnischkies <kalnischkies@gmail.com> Fri, 19 Feb 2010 21:21:43 +0100