#DispPkgs(rep) cul = base.conf.color_update_local cur = base.conf.color_update_remote rup = GetPkgs(ypl.updates, '---------------Updated Packages', basecmd, highlight_na=local_pkgs, columns=columns, highlight_modes={'=' : cul, 'not in' : cur}) #DispPkgs(rup) rrap = GetPkgs(ypl.recent, '---------------Recently Added Packages', basecmd, columns=columns) if(len(sys.argv) == 1): print "-------------- Updating available packages ---------" updatePkgs(rap) print "------------ Updating available dependencies --------" insertDep(rap)#Insert the dependencies of all the new packages else: if( sys.argv[1] == "populate"): print "Initial populate of the DB first from installed packages and then with available packages" dbObj.clearAllTables() print "-------------- Updating installed packages ---------" updatePkgs(rip) print "-------------- Updating available packages ---------" updatePkgs(rap) print "------------ Updating installed dependencies --------" insertDep(rip)#Insert the dependencies of all the installed packages print "------------ Updating available dependencies --------" insertDep(rap)#Insert the dependencies of all the new packages