diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-07-21 07:09:28 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-07-21 07:09:28 +0000 |
commit | 8802b0678bdfdea528c4a2f13f7b38a68b10ca8b (patch) | |
tree | d787df3c2a623a067e90b10a0234de6f28cca651 | |
parent | b14f667e022812a69b1354d1d9612cf36e7ff1a7 (diff) | |
download | portage-8802b0678bdfdea528c4a2f13f7b38a68b10ca8b.tar.gz portage-8802b0678bdfdea528c4a2f13f7b38a68b10ca8b.tar.bz2 portage-8802b0678bdfdea528c4a2f13f7b38a68b10ca8b.zip |
Do the portage_checksum import in local scope because of circular dependency.
svn path=/main/trunk/; revision=3979
-rw-r--r-- | pym/portage_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py index cf115d1e9..b1974b543 100644 --- a/pym/portage_util.py +++ b/pym/portage_util.py @@ -6,7 +6,6 @@ from portage_exception import PortageException, FileNotFound, \ OperationNotPermitted, PermissionDenied, ReadOnlyFileSystem import portage_exception from portage_dep import isvalidatom -import portage_checksum import sys,string,shlex,os,errno try: @@ -895,6 +894,7 @@ def new_protect_filename(mydest, newmd5=None): "._cfg" + str(prot_num).zfill(4) + "_" + real_filename)) old_pfile = normalize_path(os.path.join(real_dirname, last_pfile)) if last_pfile and newmd5: + import portage_checksum if portage_checksum.perform_md5( os.path.join(real_dirname, last_pfile)) == newmd5: return old_pfile |