summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-12-10 21:45:31 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-12-10 21:45:31 +0100
commit3f35be50ee4cb425b08139d4ccf5b54d527fe700 (patch)
tree6f68dd569ae65945119884142fff3b081aba05f6 /cmdline
parent8b8fdb116138b3adea3ce3c1fd51b3016902c8a5 (diff)
merged -r 1918..1919 from lp:~donkult/apt/sid
Diffstat (limited to 'cmdline')
-rwxr-xr-xcmdline/apt-mark7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmdline/apt-mark b/cmdline/apt-mark
index c44ce7038..3a818a3db 100755
--- a/cmdline/apt-mark
+++ b/cmdline/apt-mark
@@ -2,13 +2,14 @@
from optparse import OptionParser
+import sys
+import os.path
+
try:
import apt_pkg
except ImportError:
print "Error importing apt_pkg, is python-apt installed?"
-
-import sys
-import os.path
+ sys.exit(1)
actions = { "markauto" : 1,
"unmarkauto": 0