]> git.donarmstrong.com Git - dak.git/commitdiff
Import errno, used in Exception handling.
authorPaul Tagliamonte <tag@pault.ag>
Mon, 25 Aug 2014 16:59:46 +0000 (12:59 -0400)
committerPaul Tagliamonte <tag@pault.ag>
Mon, 25 Aug 2014 16:59:46 +0000 (12:59 -0400)
From a reject exception:

|   File "/srv/ftp-master.debian.org/dak/dak/daklib/upload.py", line 155, in check
|     if e.errno == errno.ENOENT:
| NameError: global name 'errno' is not defined

daklib/upload.py

index 76939bd7719e851f3323e39190e56a8cd3fe6430..7095b679c05aa991484bcb7393a16a5161ef5552 100644 (file)
@@ -23,6 +23,7 @@ It provides methods to access the included binary and source packages.
 
 import apt_inst
 import apt_pkg
+import errno
 import os
 import re