FS#56956 - {archweb}: Misleading link for "Source Files" on package page

Attached to Project: Arch Linux
Opened by Tinu Weber (ayekat) - Thursday, 04 January 2018, 22:55 GMT
Last edited by Angel Velasquez (angvp) - Sunday, 04 February 2018, 19:04 GMT
Task Type Feature Request
Category Web Sites
Status Closed
Assigned To Angel Velasquez (angvp)
Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

On the webpage for a package, the "Source Files" link leads to the view
that shows the /trunk directory, rather than the directory that contains
the package files used for building the respective package (e.g.
/repos/core-x86_64 for [core] or /repos/testing-x86_64 for [testing]).

For instance there might be filesystem both in [core] and [testing]
(with two separate pages [1] and [2]). But on both pages, "Source Files"
leads to the same directory in the cgit interface [3]. This is rather
misleading, as one would expect getting the files used for building the
currently packaged version in the repository.

Would it be possible to have the link point to /repos/{repo}-{arch}
instead of /trunk? Or maybe point to /, so that it is evident that
there are two versions? Or maybe add a second link (so that both the
trunk and the respective files are quickly accessible - my personal
favourite).

[1]: https://www.archlinux.org/packages/core/x86_64/filesystem/
[2]: https://www.archlinux.org/packages/testing/x86_64/filesystem/
[3]: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/filesystem
This task depends upon

Closed by  Angel Velasquez (angvp)
Sunday, 04 February 2018, 19:04 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This is not archweb related but our git interface..
Comment by Evangelos Foutras (foutrelis) - Sunday, 07 January 2018, 16:10 GMT
Problem is the repos/* copies have no history attached to them. If you were to visit [1] and click on "log" you wouldn't get anything useful. This also means that the "View Changes" link can only point to /trunk. Altering the "Source Files" link would therefore introduce an inconsistency between the two.

Also see what Dan wrote in  FS#30734 , which this pretty much is a duplicate of.

[1] https://git.archlinux.org/svntogit/packages.git/tree/repos/core-x86_64?h=packages/filesystem
Comment by Tinu Weber (ayekat) - Sunday, 07 January 2018, 18:36 GMT
Oh, I didn't see that other report when searching. Sorry. But your
explanation makes sense.

Would linking to the tree under /trunk (at the right commit) be an
option? For instance [1] for the current version (filesystem-2017.10-2).
This way, clicking on "log" would then still reveal the complete
history.

Or/and with an additional link, like "Source Files [core] [trunk]"

[1] https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/filesystem&id=bc695be763be4b553a31cf899dc5badfb6f1a0aa

Loading...