summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'g_cran/cran_read.py')
-rw-r--r--g_cran/cran_read.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/g_cran/cran_read.py b/g_cran/cran_read.py
index f648830..c243a7f 100644
--- a/g_cran/cran_read.py
+++ b/g_cran/cran_read.py
@@ -194,10 +194,7 @@ def read_packages(package_filename,local_repository):
#find a package in this repository... we really should cache this
#into some sqlite database once
def find_package(repo_location,package_name):
- database_tarball=tarfile.open(os.path.join(repo_location,REPO_MYDIR,'database.tgz'),'r')
- package_file=database_tarball.extractfile(package_name)
- if package_file==None:
- raise DoesNotExist
+ package_file=open(os.path.join(repo_location,REPO_MYDIR,'DESCRIPTION',package_name))
repository_file=open(os.path.join(repo_location,REPO_MYDIR,'remote_uri'),'r')
remote_uri=repository_file.read().strip()