]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/utils.py
We don't use re_is_orig_source in daklib.utils anymore.
[dak.git] / daklib / utils.py
index 00939c7e384e325783c146aba626b7333f0899ae..45d1895d7a4ceae0f1ec17b5742238df6deb7efc 100755 (executable)
@@ -72,6 +72,9 @@ def dak_getstatusoutput(cmd):
 
     output = "".join(pipe.stdout.readlines())
 
+    if output[-1:] == '\n':
+        output = output[:-1]
+
     ret = pipe.wait()
     if ret is None:
         ret = 0
@@ -304,13 +307,13 @@ def check_hash(where, files, hashname, hashfunc):
         try:
             try:
                 file_handle = open_file(f)
-    
+
                 # Check for the hash entry, to not trigger a KeyError.
                 if not files[f].has_key(hash_key(hashname)):
                     rejmsg.append("%s: misses %s checksum in %s" % (f, hashname,
                         where))
                     continue
-    
+
                 # Actually check the hash for correctness.
                 if hashfunc(file_handle) != files[f][hash_key(hashname)]:
                     rejmsg.append("%s: %s check failed in %s" % (f, hashname,