Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=cfpm.git;a=commitdiff;h=0b5e6e113148c697c920bae6bf70160bd2bb5968
commit 0b5e6e113148c697c920bae6bf70160bd2bb5968 Author: Priyank <priy...@frugalware.org> Date: Fri Jun 5 17:42:35 2009 +0530 readPackage() should check if the db is registered diff --git a/pm.cc b/pm.cc index 66c3e21..eaeb5f6 100644 --- a/pm.cc +++ b/pm.cc @@ -120,7 +120,7 @@ Package* Database::readPackage(const string pname) PM_PKG *pkg = NULL; Package *p = NULL; - if ( (pkg=pacman_db_readpkg(db,pname.c_str())) ) + if ( isRegistered() && (pkg=pacman_db_readpkg(db,pname.c_str())) ) p = new Package(pkg); return p; } _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git