[PC-BSD Commits] r12266 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Wed Aug 24 12:19:51 PDT 2011


Author: kris
Date: 2011-08-24 12:19:51 -0700 (Wed, 24 Aug 2011)
New Revision: 12266

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
Log:

Add warning if PBI repo meta-files haven't been downloaded, so users knows
why nothing is showing up. 



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2011-08-24 18:49:42 UTC (rev 12265)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2011-08-24 19:19:51 UTC (rev 12266)
@@ -616,8 +616,11 @@
 		qDebug() << "Getting PBIs for repo:" << repoID;
 
 		// Make sure we have a meta-file and index file
-		if ( pbiRepos->getMeta(r).isEmpty() || ! QFile::exists(pbiRepos->getMeta(r)) || pbiRepos->getIndex(r).isEmpty() || ! QFile::exists(pbiRepos->getIndex(r)) )
+		if ( pbiRepos->getMeta(r).isEmpty() || ! QFile::exists(pbiRepos->getMeta(r)) || pbiRepos->getIndex(r).isEmpty() || ! QFile::exists(pbiRepos->getIndex(r)) ) {
+			QMessageBox::warning( this, tr("Warning!"), tr("Missing meta-files for RepoID:") + " " + repoID + ". " + tr("This is normally due to the internet connection being offline or mis-configured.") );
 			continue;
+			
+		}
 
 		// Start by loading index file into memory
 		QFile iFile(pbiRepos->getIndex(r));



More information about the Commits mailing list