[aur-general] AUR4 feature request
Hi, it would be nice if users could subscribe to packages, to receive information before a package gets deleted. I noticed that a PKGBUILD I used disappeared, before I could store the PKGBUILD on my machine. $ pacman -Qi libfm-gtk-git Name : libfm-gtk-git Version : 1.2.3.43.gc8ff3c2-1 Build Date : Mon 25 May 2015 04:12:52 AM CEST It's neither provided by the old, nor by the new AUR. I never downloaded the PKGBUILD, since I build with yaourt. To avoid such unpleasant surprises in the future, it would be nice if users could receive information about delete requests, when they are subscribe to a package. Regards, Ralf
I t's neither provided by the old, nor by the new AUR. I never downloaded the PKGBUILD, since I build with yaourt. The old git mirror for AUR 3 never removed old packages, so you can still retrieve it from there. But it would be good to maintain access to old packages on the new AUR as well. - Justin
On Sat, 13 Jun 2015 05:25:37 +0000, Justin Dray wrote:
The old git mirror for AUR 3 never removed old packages, so you can still retrieve it from there. But it would be good to maintain access to old packages on the new AUR as well.
Thank you Justin, I wasn't aware of https://aur.archlinux.org/packages/aur-git/ and I agree, it should be available for AUR 4 too. Regards, Ralf
On Sat, Jun 13, 2015 at 1:52 AM, Ralf Mardorf <info.mardorf@rocketmail.com> wrote:
Thank you Justin,
I wasn't aware of https://aur.archlinux.org/packages/aur-git/ and I agree, it should be available for AUR 4 too.
Regards, Ralf
Rather than cloning the whole AUR history (lots of unneeded disk space) I suggest you use the following to pull the last version in the aur-mirror: wget -e robots=off --reject "index.html" -np -r -nH --cut-dirs 3 pkgbuild.com/git/aur-mirror.git/plain/{package-name} robots=off because otherwise recursive download fails, don't download the index page, just the files it links to, and cull the extra folders in the path to the packagedir. -- Eli Schwartz
On Sat, Jun 13, 2015 at 11:41 PM, Eli Schwartz <eschwartz93@gmail.com> wrote:
On Sat, Jun 13, 2015 at 1:52 AM, Ralf Mardorf <info.mardorf@rocketmail.com> wrote:
Thank you Justin,
I wasn't aware of https://aur.archlinux.org/packages/aur-git/ and I agree, it should be available for AUR 4 too.
Regards, Ralf
Rather than cloning the whole AUR history (lots of unneeded disk space) I suggest you use the following to pull the last version in the aur-mirror:
wget -e robots=off --reject "index.html" -np -r -nH --cut-dirs 3 pkgbuild.com/git/aur-mirror.git/plain/{package-name}
robots=off because otherwise recursive download fails, don't download the index page, just the files it links to, and cull the extra folders in the path to the packagedir.
-- Eli Schwartz
If the goal of this is to create a mirror of AUR4, then the superproject repo functionality would probably be the most appropriate. As far as I know, the AUR devs are working on this functionality. This is part of a series of feature requests I made a while ago during the alpha/beta testing of aur-dev: https://bugs.archlinux.org/task/43292 The idea is to make it possible to clone a "superproject" git repo that has all of your packages (or all packages in general if so desired) from AUR4. This would eliminate the need for third party tools like the one you linked to, since all you'd need to achieve the /var/aur mirror is to "git clone <superproject url>"...
On Sat, Jun 13, 2015 at 11:03 PM, Ido Rosen <ido@kernel.org> wrote:
If the goal of this is to create a mirror of AUR4, then the superproject repo functionality would probably be the most appropriate. As far as I know, the AUR devs are working on this functionality. This is part of a series of feature requests I made a while ago during the alpha/beta testing of aur-dev:
https://bugs.archlinux.org/task/43292
The idea is to make it possible to clone a "superproject" git repo that has all of your packages (or all packages in general if so desired) from AUR4.
This would eliminate the need for third party tools like the one you linked to, since all you'd need to achieve the /var/aur mirror is to "git clone <superproject url>"...
As for me, all I was answering is the question of "how to download the latest version of a deleted AUR3 package in the most efficient way". I imagine the current maintainer of the aur-mirror project might want to investigate the question of AUR4 mirroring, but... what happens to deleted packages? The aur-mirror doesn't delete deleted packages, but does aurweb? (Under the theory that it isn't needed anymore, same way AUR3 deleted them?) Hopefully not. And if they aren't deleted in AUR4, but instead I guess hidden from searches the way migrated-but-not-activated-packages are, then one could simply use the usual AUR helper to download. Perhaps with a warning that the package was deleted. -- Eli Schwartz
On Sat, 13 Jun 2015 22:41:43 -0500, Eli Schwartz wrote:
On Sat, Jun 13, 2015 at 1:52 AM, Ralf Mardorf wrote:
I wasn't aware of https://aur.archlinux.org/packages/aur-git/ and I agree, it should be available for AUR 4 too.
Rather than cloning the whole AUR history (lots of unneeded disk space) I suggest you use the following to pull the last version in the aur-mirror:
wget -e robots=off --reject "index.html" -np -r -nH --cut-dirs 3 pkgbuild.com/git/aur-mirror.git/plain/{package-name}
robots=off because otherwise recursive download fails, don't download the index page, just the files it links to, and cull the extra folders in the path to the packagedir.
Thank you Eli, good to know a way to save disk space, assumed it's needed and/or wanted. At the moment it's convenient for me to clone it. $ du -sh /var/aur/ 1.7G /var/aur/ Regards, Ralf
On Sat, Jun 13, 2015 at 11:29 PM, Ralf Mardorf <info.mardorf@rocketmail.com> wrote:
Thank you Eli,
good to know a way to save disk space, assumed it's needed and/or wanted.
At the moment it's convenient for me to clone it.
$ du -sh /var/aur/ 1.7G /var/aur/
Regards, Ralf
:-P Please at least do a sparse checkout! [eschwartz@arch ~]$ cat bin/aur-mirroring #!/bin/bash aurdir=${HOME}/git/aur-mirror if [[ ! -e "${aurdir}" ]]; then echo "aur-mirror (${aurdir}) directory does not exist, initializing (without checkout)..." git clone -n git://pkgbuild.com/aur-mirror.git "${aurdir}" cd "${aurdir}" git config core.sparseCheckout true echo "creating sparse-checkout list from pacman..." pacman -Qqm > .git/info/sparse-checkout echo "checking out specified packages..." git checkout master elif [[ ! -d "${aurdir}" ]];then echo "${aurdir} is not a directory, oops!" exit 1 elif [[ ! -d "${aurdir}"/.git ]]; then echo "${aurdir} is not a repository, oops!" exit 2 else cd "${aurdir}" echo "rebuilding sparse-checkout list from pacman..." (cat .git/info/sparse-checkout; pacman --config /etc/pacman-nocustom.conf -Qqm)|sort -u | tee .git/info/sparse-checkout 1>/dev/null echo "updating repo..." git read-tree -mu HEAD git pull fi -- Eli Schwartz
participants (4)
-
Eli Schwartz
-
Ido Rosen
-
Justin Dray
-
Ralf Mardorf