[aur-dev] Setting keywords from the command line
Hi, Currently, in order to change the keywords of a package base, users need to log into the web interface and submit a form on the package base details page. It would be nice to be able to change keywords without using a web browser, see FS#45627 [1]. Now, there are two options: 1. Add a set-keywords command to the aurweb SSH interface such that users can run `ssh aur.archlinux.org set-keywords foobar keyword1 keyword2 keyword3` to change keywords (or still use the web interface). 2. Remove the option from the web interface and introduce a new file (.KEYWORDS or something more general like .AURINFO, .AURMETADATA) that is parsed in the Git update hook. Obviously, with the second option, one would get a history of keyword changes. On the other hand, some might argue that this will clutter the commit history (although keyword changes should not happen too often) and that this changes makes the AUR package repositories special in a certain way (currently there is nothing AUR-specific in the Git repositories itself, an implementation of the second idea will add such information). Are there any opinions on which option should be implemented? Any other advantages/disadvantages I did not think of? Regards, Lukas [1] https://bugs.archlinux.org/task/45627
* Lukas Fleischer <lfleischer@archlinux.org> (Tue, 29 Sep 2015 08:40:20 +0200):
Currently, in order to change the keywords of a package base, users need to log into the web interface and submit a form on the package base details page. It would be nice to be able to change keywords without using a web browser, see FS#45627 [1].
Sounds good to add a method to change keywords without using a web browser.
1. Add a set-keywords command to the aurweb SSH interface such that users can run `ssh aur.archlinux.org set-keywords foobar keyword1 keyword2 keyword3` to change keywords (or still use the web interface).
2. Remove the option from the web interface and introduce a new file (.KEYWORDS or something more general like .AURINFO, .AURMETADATA) that is parsed in the Git update hook.
I strongly prefer 1. 2 causes too much clutter in the source tree and I don't like having AUR-specific files around, especially not if it's (only) for keywords. That would be another file we have to parse (if it's not as simple as lines with keywords or a line with keywords separated by spaces). And what if we invent another AUR-specific option? Another file? Change the syntax of the keywords file? In case of 1, a command like `get-keywords` would also be necessary, so one can see what the current keywords are. Best, Marcel
On Thu 01 Oct 2015 00:17 +0200, Marcel Korpel wrote:
* Lukas Fleischer <lfleischer@archlinux.org> (Tue, 29 Sep 2015 08:40:20 +0200):
Currently, in order to change the keywords of a package base, users need to log into the web interface and submit a form on the package base details page. It would be nice to be able to change keywords without using a web browser, see FS#45627 [1].
Sounds good to add a method to change keywords without using a web browser.
1. Add a set-keywords command to the aurweb SSH interface such that users can run `ssh aur.archlinux.org set-keywords foobar keyword1 keyword2 keyword3` to change keywords (or still use the web interface).
2. Remove the option from the web interface and introduce a new file (.KEYWORDS or something more general like .AURINFO, .AURMETADATA) that is parsed in the Git update hook.
I strongly prefer 1. 2 causes too much clutter in the source tree and I don't like having AUR-specific files around, especially not if it's (only) for keywords. That would be another file we have to parse (if it's not as simple as lines with keywords or a line with keywords separated by spaces). And what if we invent another AUR-specific option? Another file? Change the syntax of the keywords file?
In case of 1, a command like `get-keywords` would also be necessary, so one can see what the current keywords are.
3. Make keywords part of the PKGBUILD spec, the metadata is then output to PKGINFO/SRCINFO
participants (3)
-
Loui Chang
-
Lukas Fleischer
-
Marcel Korpel