Closed yarikoptic closed 1 year ago
@yarikoptic What exactly is the format of the filename of the .deb? The latest packages all seem to be of the form git-annex-standalone_{version}-1.ndall+1_amd64.deb
, but the older ones (which all include Git details in the version) have names of the form git-annex-standalone_{version}-1~ndall+1_amd64.deb
(with a tilde instead of a period before "ndall").
hm, that is odd! I was expecting ~ndall
too! apparently:
but we have .ndall
on https://github.com/datalad/git-annex/releases/tag/10.20221212 .
so it must be github which replaces ~
with .
in the filename. Could you please confirm that @jwodder and see if there is some way for it to retain ~
in the filename?
if there would be no way -- I will I guess adjust http://datasets.datalad.org/datalad/packages/update.sh to replace .
with ~
as IMHO it should be.
Note: metadata about package version is within .deb , so even if user downloads https://github.com/datalad/git-annex/releases/download/10.20221212/git-annex-standalone_10.20221212-1.ndall+1_amd64.deb and installs it, dpkg/apt would know it as ~ndall
.
@yarikoptic I can confirm that GitHub changes tildes in release asset filenames to periods on upload. ~I can't find a way to prevent this, nor does this behavior seem to be documented anywhere.~ Specifically:
GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods.
to complement https://github.com/datalad/datalad-installer/pull/136/files which added for OSX (originally was only for windows) and should be as easy to add for ubuntu, thus hopefully avoiding need to specify GITHUB_TOKEN if to go through datalad/git-annex:release to resolve https://github.com/datalad/datalad-installer/issues/137 (as in https://github.com/DanielDent/git-annex-remote-rclone/pull/60 )