Explorar o código

merged -r 1918..1919 from lp:~donkult/apt/sid

Michael Vogt %!s(int64=16) %!d(string=hai) anos
pai
achega
3f35be50ee
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  1. 4 3
      cmdline/apt-mark
  2. 2 0
      debian/changelog

+ 4 - 3
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

+ 2 - 0
debian/changelog

@@ -81,6 +81,8 @@ apt (0.7.25) UNRELEASED; urgency=low
   * cmdline/apt-mark:
     - print an error if a new state file can't be created,
       thanks Carl Chenet! (Closes: #521289)
+    - print an error and exit if python-apt is not installed,
+      thanks Carl Chenet! (Closes: #521284)
 
   [ Chris Leick ]
   * doc/ various manpages: