Date: Sat, 18 Oct 2014 20:42:24 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 193016] pkg upgrade does not use latest version from repo Message-ID: <bug-193016-32340-hJ2qFLYhiZ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-193016-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-193016-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193016 Kalten <kalten@gmx.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kalten@gmx.at --- Comment #2 from Kalten <kalten@gmx.at> --- Still not solved. »pkg -v« tells me »1.3.8«. I have created packages using ports-mgmt/poudriere. As I have updated the ports tree inside poudriere and recompiled newer ports multiple times, I have ended up with multiple versions of many many packages: e.g. www/firefox. (Deleting the whole directory and recompiling all takes my poor computer about three days—that is why I do not prefere this way) »sqlite3 /var/db/pkg/repo-freeHeimdall.sqlite "select * from pkg_search"| \ grep firefox« leads to: ----8<---- 972|firefox-31.0,1|www/firefox 2319|firefox-32.0_2,1|www/firefox 2920|firefox-32.0.3,1|www/firefox 2921|firefox-32.0_2,1|www/firefox 4056|firefox-32.0.3,1|www/firefox 4567|firefox-33.0,1|www/firefox 4568|firefox-32.0.3,1|www/firefox 4663|firefox-33.0,1|www/firefox 4664|firefox-32.0.3,1|www/firefox ---->8---- »pkg rquery "%n %v" firefox« results in »firefox 32.0.3,1« and »pkg version -e firefox« in ----8<---- firefox-32.0.3,1 < ---->8---- so pkg seems to notice that firefox has to be updated (right?). But running »pkg upgrade« results in: ----8<---- Updating freeHeimdall repository catalogue... freeHeimdall repository is up-to-date. All repositories are up-to-date. Checking for upgrades (3 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. ---->8---- And I have no idea which the three mentioned candidates are especially as »pkg version | grep -v " *="|wc -l« tells me, that 35 packages have to be updated, not three. Please do correct this problem! Deleting all packages and installing again is one solution, but not the best one. (And I suppose that would not solves the problem). Deleting all packages in poudriere each time and copying all generated packages to the server (instead of the new ones) is not very preferable either. I could write a script to search for such cases—but than again there might be cases of packages e.g fubar-1 and fubar-2 that match two different ports and should remain both (yes, one could check for that too). I think the problem ought to be handled by pkg; blaming some server adinistrators copying multiple versions to one directory must not be the solution. Regards, Kalten -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193016-32340-hJ2qFLYhiZ>
