You are not logged in.

#1 2023-02-26 09:37:06

nikost_74
Member
From: Stockholm
Registered: 2019-06-07
Posts: 4

[Solved]How to fix wrong format url in Sources tree

I took over an AUR package called wg++ which uses character plus (+) in the main git folder.
Is it possible to either rename this package to i.e. "wgpp.git" or to fix so the correct http encoding is applied?

This would be the correct format "wg%2b%2b", instead of "wg++".

Last edited by nikost_74 (2023-02-27 10:52:35)

Offline

#2 2023-02-26 12:37:28

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved]How to fix wrong format url in Sources tree

Not sure what you mean with that, but it looks like that package was never updated to use makepkg VCS sources support  .

I suggest you add the _siteini url to source= array and  let makepkg download all needed sources.
Incase the issue with the + / %2b still exists after that, please describe it in more detail.

Last edited by Lone_Wolf (2023-02-26 12:37:46)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2023-02-26 23:55:21

nikost_74
Member
From: Stockholm
Registered: 2019-06-07
Posts: 4

Re: [Solved]How to fix wrong format url in Sources tree

Many thanks for pointing out the VCS sources support, I have tested it locally and it works. I will add it to the next package update.

The issue I am trying to explain is the same for all AUR packages found which cointain a plus (+) sign in the end of the i.e. "AUR : wg++.git".
If You try to check custom files (shell scripts etc), in this case the Source file "wgpp.sh" receives the error text "Invalid branch: wg".
Full url link looks like this: https://aur.archlinux.org/cgit/aur.git/ … .sh?h=wg++

My question was if it is possible to fix this issue by adding the correct url encoding or renaming the wg++.git package to lets say wgpp.git?

Offline

#4 2023-02-27 08:38:01

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved]How to fix wrong format url in Sources tree

So it's about the AUR web interface. Links to source files that are hosted in the AUR do not seem to be properly URL encoded, while similar links under "Package Actions" (view changes/view pkgbuild) are working (for me anyway). (@
https://aur.archlinux.org/packages/wg++)

The AUR home page has a section "Bug reporting" at the bottom.

Last edited by Raynman (2023-02-27 08:39:08)

Offline

#5 2023-02-27 10:01:10

nikost_74
Member
From: Stockholm
Registered: 2019-06-07
Posts: 4

Re: [Solved]How to fix wrong format url in Sources tree

Thanks for the help, indeed I will report this to AUR Bug reporting, You can close this thread as solved.

Offline

#6 2023-02-27 10:45:06

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved]How to fix wrong format url in Sources tree

Yes, a bug report is the best way to continue.

nikost_74 wrote:

You can close this thread as solved

Please prepend [Solved] to the thread title (edit first post, there is a character limit so you may have to shorten the title)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB