You are not logged in.

#1 2021-10-27 13:29:03

bartus
Member
Registered: 2013-05-13
Posts: 48

Quick way to get delated PKGBUILD file.

Is there some more elegant way of getting the PKGBUILD for packages dropped from the Arch repository.

I've resolved to `git clone https://github.com/archlinux/svntogit-packages` and roll back before the commit that deletes the package.

I've tried GitHub events API to check commit that removes the package related branch but it gets only so far in the past.

$curl 'https://api.github.com/repos/archlinux/svntogit-packages/events?per_page=100&page=4'
{
  "message": "In order to keep the API fast for everyone, pagination is limited for this resource. Check the rel=last link relation in the Link response header to see how
far back you can traverse.",
  "documentation_url": "https://docs.github.com/v3/#pagination"
}

Last edited by bartus (2021-10-27 13:29:26)

Offline

#2 2021-10-28 16:12:56

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

Re: Quick way to get delated PKGBUILD file.

asp[1] can help with that if you know the name of the package.


[1] https://wiki.archlinux.org/title/Arch_B … _using_Git

Last edited by Lone_Wolf (2021-10-28 16:13:07)


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 2021-11-01 23:41:13

bartus
Member
Registered: 2013-05-13
Posts: 48

Re: Quick way to get delated PKGBUILD file.

Lone_Wolf wrote:

asp[1] can help with that if you know the name of the package.

Nope, `asp` throws an error saying `unknown package` when called with deleted package name...

Offline

#4 2021-11-01 23:44:17

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Quick way to get delated PKGBUILD file.

Out of curiosity what is the package name?

Offline

#5 2021-11-02 00:34:56

bartus
Member
Registered: 2013-05-13
Posts: 48

Re: Quick way to get delated PKGBUILD file.

loqs wrote:

Out of curiosity what is the package name?

Today I need to reinstate `python2-netifaces` but originally when posted I was going to restore `opencolorio1`

Last edited by bartus (2021-11-02 00:35:22)

Offline

#6 2021-11-02 00:45:33

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Quick way to get delated PKGBUILD file.

https://github.com/archlinux/svntogit-community -> search opencolorio1 -> commits -> db-remove -> parent -> browse files then append opencolorio1 to path giving
https://github.com/archlinux/svntogit-c … ncolorio1/

python2-netifaces was a split package with python-netifaces before it was dropped
https://github.com/archlinux/svntogit-c … 5eb9b7203a

Offline

Board footer

Powered by FluxBB