Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-1.0.git;a=commitdiff;h=d587676f3becd318e6fc757c0978bc735006e269

commit d587676f3becd318e6fc757c0978bc735006e269
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Mar 29 15:26:33 2009 +0200

tools/fpm2db: fix python-2.6 warnings

(cherry picked from commit 3a6c7bc7b698484b91e6b2f8b1f2f597be8bfaed)

diff --git a/tools/fpm2db b/tools/fpm2db
index 4331bf8..493812a 100755
--- a/tools/fpm2db
+++ b/tools/fpm2db
@@ -13,7 +13,7 @@ Options:
-d ..., --dbname=...    The name of the database. (optional)
"""

-import getopt, re, os, sha, string, sys, time
+import getopt, re, os, hashlib, string, sys, time
import MySQLdb

class package:
@@ -149,7 +149,7 @@ EOF
self.uploader=None

if not self.nobuild:
-                       ctx = sha.new()
+                       ctx = hashlib.new("sha1")
socket = open(fpm)
while True:
buf = socket.read(16384)
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to