diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-06 07:54:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-06 07:54:25 +0000 |
commit | 7c0107e9a4b5fa4f4c0a09af57693148ed0d0ffb (patch) | |
tree | 6ca9d52c7ebe82a8fcc6a1427aca2dc2481970c6 | |
parent | 687fe40ea3c3f05d75e2f649e0c3db3f0c4474d0 (diff) | |
download | portage-7c0107e9a4b5fa4f4c0a09af57693148ed0d0ffb.tar.gz portage-7c0107e9a4b5fa4f4c0a09af57693148ed0d0ffb.tar.bz2 portage-7c0107e9a4b5fa4f4c0a09af57693148ed0d0ffb.zip |
Return copies of the cached values from pkgsplit and catpkgsplit.
svn path=/main/trunk/; revision=6746
-rw-r--r-- | pym/portage/versions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/versions.py b/pym/portage/versions.py index 25b373e17..95d7340a3 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -245,7 +245,7 @@ def pkgsplit(mypkg,silent=1): #names can't have versiony looking parts myval=["-".join(myparts[:verPos]),myparts[verPos],revision] pkgcache[mypkg]=myval - return myval + return myval[:] else: pkgcache[mypkg]=None return None @@ -289,7 +289,7 @@ def catpkgsplit(mydata,silent=1): return None retval.extend(p_split) catcache[mydata]=retval - return retval + return retval[:] def catsplit(mydep): return mydep.split("/", 1) |