fixed signature generation
authorFlorian Schweikert <kelvan@logic.at>
Fri, 13 Jan 2012 13:39:43 +0000 (14:39 +0100)
committerFlorian Schweikert <kelvan@logic.at>
Fri, 13 Jan 2012 13:39:43 +0000 (14:39 +0100)
fixing build problem on ubuntu 10.04

digsigsums.py

index d0ef7db..3afbe5b 100644 (file)
@@ -20,7 +20,7 @@ def hash_file(filePath, packageName):
     # S 15 com.nokia.maemo H 40 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx R 5 abcde
     # Source (might change) hash (sha1)                                 relative path
     if '/DEBIAN/' in filePath:
-        relativepath = 'var/lib/dpkg/info/{0}.{1}'.format(packageName, filePath[17+len(packageName):])
+        relativepath = 'var/lib/dpkg/info/{0}.{1}'.format(packageName, filePath[15+len(packageName):])
     else:
         relativepath = filePath[8+len(packageName):]        
         
@@ -42,4 +42,4 @@ if(len(sys.argv) > 1):
             if check_file(join(path,filename)):
                 digsigsums.write(hash_file(join(path,filename), packageName))
                     
-    digsigsums.close()
\ No newline at end of file
+    digsigsums.close()