#783781 apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all #783781
- Package:
- apt-show-versions
- Source:
- apt-show-versions
- Submitter:
- Paul Wise
- Date:
- 2021-09-22 04:29:18 UTC
- Severity:
- normal
The packages apertium-en-es, proj-data and wml have transitioned from Architecture: any in unstable to Architecture: all in experimental. I have the unstable versions installed but not the experimental ones and apt-show-versions shows "foo:all not installed" for all of them. This is confusing since apt-show-versions is meant to only show installed stuff. apertium-en-es:all not installed apertium-en-es:amd64/testing 0.6.0-1.1+b2 uptodate proj-data:all not installed proj-data:amd64/testing 4.8.0-5 uptodate wml:all not installed wml:amd64/testing 2.0.12ds1-8 uptodate
It seems like this is deliberate in the code, yet it's totally unclear
to me why it's happening. The following patch, of course, fixes the
problem:
diff --git i/apt-show-versions w/apt-show-versions
index 3df13c7..ab1f91c 100755
--- i/apt-show-versions
+++ w/apt-show-versions
@@ -513,7 +513,7 @@ sub print_package_internal {
"version in archive\n");
}
}
- } else {
+ } elsif ($ipkg->{$VERS}) {
push(@print_info, "$pkgarch not installed",
($mode == $MODE_SINGLE and not keys(%{$apackages->{$package}{$arch}}))
? " (even not available)\n" : "\n");
But it's not clear to me what the proper solution is or what the purpose
of this 'not installed' statement is... That code has been present
basically forever (since the 2007, 0.10 original git import) without any
clear explanation.
Another alternative would be to just remove that code completely, since
it's unclear what purpose it serves. This is basically what the above
does anyways.
Other opinions?
A.
snapshot goes back to 0.03 and the code is slightly different there but there is also a not installed statement. https://snapshot.debian.org/package/apt-show-versions/ BTW Christoph, when this package moves to salsa it would be nice to import those versions so people could use grafts to view the history.
Hi Paul, Am 25.10.18 um 02:48 schrieb Paul Wise: It is on salsa for about half a year now. Do you have a documentation how to include these snapshots into the git history? Christoph
Ah, I was mislead by the Homepage pointing to Alioth.
Preparation:
cd apt-show-versions/
debsnap --force --destdir .. --last 0.09 apt-show-versions
git checkout --orphan archive
git rm -rf .
Repeat imports for each version:
for version in 0.03 0.07 0.08 0.09 ; do
git ls-files -z | xargs -0 rm -- -f
dpkg-source -x ../apt-show-versions_$version.dsc extract
find extract/ -mindepth 1 -maxdepth 1 -print0 | xargs -0 mv -t .
rmdir extract
git add .
git commit --date "$(dpkg-parsechangelog -S Date)" --author "$(dpkg-parsechangelog -S Maintainer)" -a -m "Import apt-show-version $version" -m "Imported-from: https://snapshot.debian.org/package/apt-show-versions/$version/"
GIT_AUTHOR_DATE="$(dpkg-parsechangelog -S Date)" git tag -s $version -m "Import apt-show-version $version" -m "Imported-from: https://snapshot.debian.org/package/apt-show-versions/$version/"
done
Add the graft:
git replace --graft release-0.10^ 0.09^{}
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-replace.html
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-rev-parse.html
Finalise:
gitk --all
git push
Hi Paul, Am 25.10.18 um 16:35 schrieb Paul Wise: I should change that. Thanks for your howto. I just pushed the rebuild git history. I even could include the missing versions in between backup to version 0.01 . Regards Christoph
Hello, Good morning, We have gone through your samples from a partner and Here is our Order List. Please do bear in mind that we are very much in need of this order, quote your competitive prices. Kindly send the Order confirmation. Your early reply will be much appreciated. Best Regards, Maryanah Erwin. PT FINDORA INTERNUSA Jln Pahlawan 66 Kec. Arjawinangun 45162 CIREBON West-Java INDONESIA tel : +62 231 357334 fax: +62 231 357260 email: marketing@findora.com