From 47d65527ad4b6c5901b096d64b9128d4fe51c858 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Oct 07 2015 10:25:35 +0000 Subject: Fix Deprecation Warning - /usr/lib/python2.7/site-packages/fedpkg/cli.py:1: DeprecationWarning: Commands._hash_file is deprecated and will be removed eventually --- diff --git a/src/fedpkg/cli.py b/src/fedpkg/cli.py index 0616040..aad0a6b 100644 --- a/src/fedpkg/cli.py +++ b/src/fedpkg/cli.py @@ -166,7 +166,7 @@ suggest_reboot=False self.log.error('No bodhi update details saved!') sys.exit(1) # If the template was changed, submit it to bodhi - hash = self.cmd._hash_file('bodhi.template', 'sha1') + hash = self.cmd.lookasidecache.hash_file('bodhi.template', 'sha1') if hash != orig_hash: try: self.cmd.update('bodhi.template')