[aur-dev] [PATCH] Implement a maintenance mode

2015-06-11 Thread Lukas Fleischer
Add support for a maintenance mode that disables both the website and the SSH interface and can be enabled easily using a configuration option. Signed-off-by: Lukas Fleischer --- conf/config.proto | 1 + git-interface/git-serve.py | 5 + web/html/503.php | 15

[aur-dev] [PATCH] Do not use symrefs for manually created Git refs

2015-06-11 Thread Lukas Fleischer
received, this fixes a problem with dangling refs that were created when a user initialized a repository but did not push anything. Signed-off-by: Lukas Fleischer --- git-interface/git-serve.py | 17 - git-interface/git-update.py | 10 ++ 2 files changed, 10 insertions

Re: [aur-dev] What should AURv4 helpers do to get packages?

2015-06-11 Thread Lukas Fleischer
On Thu, 11 Jun 2015 at 07:12:03, Rémy Marquis wrote: > On 10 Jun 2015 20:05, "Lukas Fleischer" wrote: > > > > On Wed, 10 Jun 2015 at 07:52:09, Lukas Fleischer wrote: > > > On Wed, 10 Jun 2015 at 04:30:15, Rémy Marquis wrote: > > > > [...] > >

[aur-dev] [PATCH] Reintroduce the URLPath field

2015-06-11 Thread Lukas Fleischer
In commit 74edb6f (Use Git repositories to store packages, 2014-06-06), the URLPath field was dropped from RPC package results. Reintroduce the field for backwards compatibility, even though it is no longer recommended to use the snapshot tarballs. Signed-off-by: Lukas Fleischer --- web/lib

[aur-dev] [PATCH] Make URIs to the individual cgit pages configurable

2015-06-11 Thread Lukas Fleischer
Make the locations of the PKGBUILD preview, the log and the snapshot tarball configurable. This increases flexibility and simplifies the code a bit. Signed-off-by: Lukas Fleischer --- conf/config.proto| 4 +++- web/template/pkg_details.php | 10 ++ web/template

Re: [aur-dev] What should AURv4 helpers do to get packages?

2015-06-10 Thread Lukas Fleischer
On Wed, 10 Jun 2015 at 07:52:09, Lukas Fleischer wrote: > On Wed, 10 Jun 2015 at 04:30:15, Rémy Marquis wrote: > > [...] > > Some AUR helpers (cower, aurget, ..) currently rely in this URLPath field > > for retrieving the correct tarball. > > > > It would

[aur-dev] [PATCH] pkgbase.php: Escape error messages

2015-06-09 Thread Lukas Fleischer
Fixes FS#45284. Signed-off-by: Lukas Fleischer --- web/html/pkgbase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index 2f8f932..c834f8b 100644 --- a/web/html/pkgbase.php +++ b/web/html/pkgbase.php @@ -146,9 +146,9

Re: [aur-dev] What should AURv4 helpers do to get packages?

2015-06-09 Thread Lukas Fleischer
On Wed, 10 Jun 2015 at 04:30:15, Rémy Marquis wrote: > [...] > Some AUR helpers (cower, aurget, ..) currently rely in this URLPath field > for retrieving the correct tarball. > > It would be very useful to allow backward compatibility with the RPC > interface v3, at least for the time being. > H

Re: [aur-dev] What should AURv4 helpers do to get packages?

2015-06-09 Thread Lukas Fleischer
On Tue, 09 Jun 2015 at 16:52:52, Chris Warrick wrote: > Hello, > In AURv4, URLPath was removed due to the introduction of Git > integration, which raises the question: what is the recommended way > for AUR helpers to get packages? Should they: > > (a) manually generate a clone URL (/PKGBASE.git/)

[aur-dev] [PATCH] Encode cgit URIs properly

2015-06-09 Thread Lukas Fleischer
Fixes FS#45276 and FS#45277. Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 6 +++--- web/template/pkgbase_details.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 14f8847

[aur-dev] [PATCH] pkgbase_details.php: Fix cgit links

2015-06-09 Thread Lukas Fleischer
We forgot to amend those when switching to gitnamespaces-based storage in b44411f (Use gitnamespaces for efficient storage, 2015-06-01). Signed-off-by: Lukas Fleischer --- web/template/pkgbase_details.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/template

[aur-dev] [PATCH] Invert order when sorting packages by age

2015-06-09 Thread Lukas Fleischer
Fixes FS#44195. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index b467a3d..a5f24ba 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php

[aur-dev] [PATCH 2/2] Add a confirmation check box below search results

2015-06-09 Thread Lukas Fleischer
Always show the confirmation check box next to the package actions drop-down on the package search results page. This allows regular users to confirm disown commands. Fixes FS#45264. Signed-off-by: Lukas Fleischer --- web/template/pkg_search_results.php | 2 +- 1 file changed, 1 insertion

[aur-dev] [PATCH 1/2] Drop suffixes from confirm parameters

2015-06-09 Thread Lukas Fleischer
Remove the _delete and _disown suffixes from HTTP POST confirmation parameters. Signed-off-by: Lukas Fleischer --- web/html/account.php| 2 +- web/html/pkgbase.php| 4 ++-- web/html/pkgdel.php | 2 +- web/html/pkgdisown.php | 2

[aur-dev] [PATCH] Fix official language name of Czech

2015-06-08 Thread Lukas Fleischer
Reported-by: Pablo Lezaeta Reyes Signed-off-by: Lukas Fleischer --- web/lib/translator.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/translator.inc.php b/web/lib/translator.inc.php index 29bd1b3..416ce66 100644 --- a/web/lib/translator.inc.php +++ b/web/lib

[aur-dev] [PATCH] aurjson.class.php: Exclude hidden package bases

2015-06-08 Thread Lukas Fleischer
Do not return packages belonging to hidden package bases in RPC results. Fixes FS#45271. Signed-off-by: Lukas Fleischer --- web/lib/aurjson.class.php | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php

[aur-dev] [PATCH] git-update: Avoid duplicate notifications

2015-06-08 Thread Lukas Fleischer
Fixes FS#45254. Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/git-interface/git-update.py b/git-interface/git-update.py index 215848e..958fa7a 100755 --- a/git-interface/git-update.py +++ b/git

[aur-dev] [PATCH] Fix searching for an empty string

2015-06-08 Thread Lukas Fleischer
Return all packages when an empty search term is used with keyword search. Reported-by: G. Schlisio Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php

Re: [aur-dev] [PATCH] pkg_details: Use correct clone URL

2015-06-08 Thread Lukas Fleischer
On Mon, 08 Jun 2015 at 20:04:47, Johannes Löthberg wrote: > The clone URLs should use the pkgbase name, not the pkgname itself > > Reported-by: Jonathan Steel > Signed-off-by: Johannes Löthberg > --- > web/template/pkg_details.php | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > [.

Re: [aur-dev] [PATCH] git-update: Drop writing git description file

2015-06-08 Thread Lukas Fleischer
On Mon, 08 Jun 2015 at 14:57:57, Johannes Löthberg wrote: > All PKGBUILDs are stored in a single repository now, so there is no use > for writing out a description file for the repo anymore. > > This fixes a bug where pkgdescs containing UTF-8 characters are rejected > due to it trying to write th

[aur-dev] [PATCH] Fix package statistics

2015-06-08 Thread Lukas Fleischer
Exclude hidden package bases from the package statistics. Reported-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- web/lib/stats.inc.php | 34 ++ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/web/lib/stats.inc.php b/web/lib

Re: [aur-dev] [PATCH] Fix bug with extracting sources introduced in c7203066c

2015-06-08 Thread Lukas Fleischer
On Mon, 08 Jun 2015 at 14:18:06, Johannes Löthberg wrote: > In c7203066ce git-update was changed to use extract_arch_fields to get > the list of sources instead of looking up them up in the pkginfo dict > manually. This was done to solve a bug where only source=() sources were > unconditionally che

[aur-dev] [PATCH] Show official language names in the drop-down list

2015-06-08 Thread Lukas Fleischer
We already store the native language names. Display them in the drop-down list instead of using language codes. Signed-off-by: Lukas Fleischer --- web/template/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/header.php b/web/template/header.php index

[aur-dev] [PATCH] git-update: Improve error message for non-blob objects

2015-06-08 Thread Lukas Fleischer
ygit2.Tree' object has no attribute 'size' remote: error: hook declined to update refs/heads/master Explicitly check for directories and other non-blob objects and display a more intuitive message. Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 11 +

Re: [aur-dev] [PATCH v2] Use extract_arch_fields when checking for source files

2015-06-08 Thread Lukas Fleischer
On Mon, 08 Jun 2015 at 13:01:35, Johannes Löthberg wrote: > This fixes a bug where pushes are rejected in split PKGBUILDs if there > are no arch-independent source array. > > Fixes FS#45253 > > Reported-by: Marti > Reported-by: Maxime Gauduin > Signed-off-by: Johannes Löthberg > --- > git-int

[aur-dev] [PATCH] git-update: Increase maximum blob size to 250kB

2015-06-08 Thread Lukas Fleischer
Large blobs are needed in some packages, such as customized Linux kernels including kernel configurations. Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-interface/git-update.py b/git-interface/git

Re: [aur-dev] [PATCH] git-serve: Use `pkgbase` for errors about invalid names

2015-06-08 Thread Lukas Fleischer
On Mon, 08 Jun 2015 at 11:49:38, Wieland Hoffmann wrote: > `repo` is not defined at the point it's used, so you would get errors > like > > > Traceback (most recent call last): > > File > > "/srv/http/vhosts/aur-dev.archlinux.org/public/git-interface/git-serve.py", > > line 138, in > > di

[aur-dev] aur4.archlinux.org is online

2015-06-08 Thread Lukas Fleischer
Hi, the AUR 4 setup at aur4.archlinux.org is now live. If you submitted your packages earlier today, please double-check that they are listed on the aur4.archlinux.org web interface. Regards, Lukas

[aur-dev] Updated strings on Transifex

2015-06-04 Thread Lukas Fleischer
Dear translators, I just uploaded strings for 4.0.0-rc1 to Transifex. There is no string freeze for 4.0.0 yet but it might be nice to have at least some of the strings translated until June 8th. Regards, Lukas

[aur-dev] [PATCH] cgitrc.proto: Fix clone prefix

2015-06-04 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- conf/cgitrc.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/cgitrc.proto b/conf/cgitrc.proto index 1322f93..cb77367 100644 --- a/conf/cgitrc.proto +++ b/conf/cgitrc.proto @@ -1,5 +1,5 @@ virtual-root=/cgit/ -clone-prefix=git+ssh

[aur-dev] [PATCH v2] git-update: Prevent from overwriting packages

2015-06-04 Thread Lukas Fleischer
Make sure we do not overwrite a package belonging to another package base. We forgot to add this check to git-update when porting the package submission script to Python in commit 74edb6f (Use Git repositories to store packages, 2014-06-06). Reported-by: Johannes Löthberg Signed-off-by: Lukas

[aur-dev] [PATCH 2/2] git-update: Prevent from overwriting packages

2015-06-04 Thread Lukas Fleischer
Make sure we do not overwrite a package belonging to another package base. We forgot to add this check to git-update when porting the package submission script to Python in commit 74edb6f (Use Git repositories to store packages, 2014-06-06). Reported-by: Johannes Löthberg Signed-off-by: Lukas

[aur-dev] [PATCH 1/2] git-update: Only check HEAD for blacklisted packages

2015-06-04 Thread Lukas Fleischer
When a part of a package base is moved to the official repositories, it needs to be dropped from the AUR package. However, we want to allow that the moved packages still appear in the history. Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 10 ++ 1 file changed, 6

[aur-dev] [PATCH] aurblup: Fix path to configuration file

2015-06-03 Thread Lukas Fleischer
Fixes a regression introduced in commit 10ecd39 (Restructure scripts, 2015-06-01). Signed-off-by: Lukas Fleischer --- scripts/aurblup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/aurblup.py b/scripts/aurblup.py index e678fee..d6d0c3c 100755 --- a/scripts

[aur-dev] [PATCH] git-update: Only check HEAD for matching pkgbase

2015-06-03 Thread Lukas Fleischer
When renaming a package base, we want to keep commits of the former package. Move the check that compares the package base name with the repository name such that only HEAD is validated. Fixes FS#45065. Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 7 ++- 1 file changed

[aur-dev] [PATCH] pkgfuncs.inc.php: Remove a conflict marker

2015-06-02 Thread Lukas Fleischer
Remove a Git conflict marker that was added accidentally in 74edb6f (Use Git repositories to store packages, 2014-06-06). Reported-by: Helped-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 1 - 1 file changed, 1 deletion(-) diff --git a/web/lib

[aur-dev] [PATCH] config.proto: Cleanup

2015-06-02 Thread Lukas Fleischer
Remove the template-path and git-update-hook options which are no longer used. Update the git_clone_uri_anon default value. Signed-off-by: Lukas Fleischer --- conf/config.proto | 4 +--- git-interface/git-serve.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a

[aur-dev] [PATCH] Setup Git repositories even if package base exists

2015-06-02 Thread Lukas Fleischer
: Lukas Fleischer --- git-interface/git-serve.py | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/git-interface/git-serve.py b/git-interface/git-serve.py index eebb087..fce766a 100755 --- a/git-interface/git-serve.py +++ b/git-interface/git-serve.py

[aur-dev] [PATCH v2] Restructure scripts

2015-06-02 Thread Lukas Fleischer
* Move scripts/git-integration/ to git-interface/. * Move scripts/aurblup/aurblup.py to scripts/aurblup.py. Signed-off-by: Lukas Fleischer --- INSTALL | 4 ++-- conf/config.proto| 8 {scripts/git

[aur-dev] [PATCH] Add a Makefile for the git-auth wrapper

2015-06-02 Thread Lukas Fleischer
Avoid manual editing of the wrapper script when a non-standard path is used. Signed-off-by: Lukas Fleischer --- INSTALL | 3 +-- git-interface/Makefile | 18 ++ git-interface/config.mk | 1 + git-interface/git-auth.sh| 3 --- git-interface

[aur-dev] [PATCH] Restructure scripts

2015-06-01 Thread Lukas Fleischer
* Move scripts/git-integration/ to git-interface/. * Move scripts/aurblup/aurblup.py to scripts/aurblup.py. Signed-off-by: Lukas Fleischer --- {scripts/git-integration => git-interface}/aurinfo.py| 0 {scripts/git-integration => git-interface}/git-auth.py | 0 {scripts/git-integ

[aur-dev] [PATCH v2] git-update: Check for missing install and source files

2015-06-01 Thread Lukas Fleischer
Suggested-by: Marcel Korpel Suggested-by: carstene1ns Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 11 +++ 1 file changed, 11 insertions(+) diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py index 2c15912..c7d64df

[aur-dev] [PATCH] Use gitnamespaces for efficient storage

2015-06-01 Thread Lukas Fleischer
branch for each package, allowing to browse the large repository with cgit. Helped-by: Florian Pritz Helped-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- INSTALL | 33 ++-- conf/cgitrc.proto| 4 +- conf

Re: [aur-dev] [PATCH] git-update: Check for missing install and source files

2015-06-01 Thread Lukas Fleischer
On Mon, 01 Jun 2015 at 15:09:43, Gordian Edenhofer wrote: > > > [...] > > > This kind of check would see files which are named e.g. lp:foo as > > > not > > > missing even if they are. > > > > Sure, we only check local files and lp:foo is a remote file. Checking > > remote sources is something tha

Re: [aur-dev] [PATCH] git-update: Check for missing install and source files

2015-06-01 Thread Lukas Fleischer
On Mon, 01 Jun 2015 at 00:48:23, Gordian Edenhofer wrote: > [...] > Having a dummy file in the git repo and the true file for the checksum > is somewhat odd. Using SKIP is also not a true alternative IMHO. > True. Missing source files are somewhat odd, too, though. You could argue that pretending

Re: [aur-dev] [PATCH] git-update: Check for missing install and source files

2015-05-31 Thread Lukas Fleischer
On Mon, 01 Jun 2015 at 00:07:58, Marcel Korpel wrote: > * Lukas Fleischer (Sun, 31 May 2015 22:49:19 > +0200): > > On Sun, 31 May 2015 at 22:09:19, Marcel Korpel wrote: > >> Nevertheless, there are other cases I didn't think of, like > >> https://aur.archli

Re: [aur-dev] [PATCH] git-update: Check for missing install and source files

2015-05-31 Thread Lukas Fleischer
On Mon, 01 Jun 2015 at 00:00:31, Gordian Edenhofer wrote: > [...] > > Why are checksums an issue? You can use the checksum of the correct > > file. It doesn't match the checksum of the dummy file but I don't see > > how that is an issue (it is even good since the user immediately > > notices > > t

Re: [aur-dev] [PATCH] git-update: Check for missing install and source files

2015-05-31 Thread Lukas Fleischer
On Sun, 31 May 2015 at 22:09:19, Marcel Korpel wrote: > * Daniel Wallace (Sun, 31 May 2015 > 14:33:38 -0500): > > The names usually end in 'hib' instead of humble bundle, standing for > > Humble Indie Bundle, but there are several other things out there > > that are similar to this. > > Ah, now I

Re: [aur-dev] [PATCH] git-update: Check for missing install and source files

2015-05-31 Thread Lukas Fleischer
On Sun, 31 May 2015 at 20:14:22, Daniel Wallace wrote: > How does this affect stuff like the different humble bundle games in the aur? > > You have to download the source and put it in the source directory so I don't > think it will be in the commit tree? > [...] Good question. There are two opt

[aur-dev] [RFC v2] Draft of the AUR 4.0.0 migration notification

2015-05-31 Thread Lukas Fleischer
The original thread is too cluttered already so I decided to submit the second version in a separate thread. The only real change is that we decided to not make aur.archlinux.org a read-only archive such that users still get updates during the transition period (if AUR package maintainers decide to

[aur-dev] [PATCH] git-update: Check for missing install and source files

2015-05-31 Thread Lukas Fleischer
Suggested-by: Marcel Korpel Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py index 161d42f..0fa1ce2 100755 --- a/scripts/git

[aur-dev] [PATCH] Do not show the activity check box when registering

2015-05-31 Thread Lukas Fleischer
Creating an inactive account does not make sense. Hide the activity check box from the registration page. Signed-off-by: Lukas Fleischer --- web/template/account_edit_form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/template/account_edit_form.php b/web/template

[aur-dev] [PATCH 2/3] Add more details on the SSH public key field

2015-05-31 Thread Lukas Fleischer
Also, reorder the fields such that optional fields come last. Signed-off-by: Lukas Fleischer --- web/html/css/aurweb.css| 4 web/template/account_edit_form.php | 19 --- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/web/html/css/aurweb.css b

[aur-dev] [PATCH 1/3] Allow for resetting the SSH public key

2015-05-31 Thread Lukas Fleischer
Use NULL instead of an empty string if the SSH public key field is left empty. Additionally, do not check for duplicate keys in that case. Fixes FS#45109. Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web

[aur-dev] [PATCH 3/3] Show the SSH key field on the registration page

2015-05-31 Thread Lukas Fleischer
Now that we have a short explanation on how we use the SSH public key, we can show that field on the registration page. Signed-off-by: Lukas Fleischer --- web/html/account.php | 3 ++- web/template/account_edit_form.php | 2 -- 2 files changed, 2 insertions(+), 3 deletions

Re: [aur-dev] [PATCH] Autofocus username input field at login screen

2015-05-27 Thread Lukas Fleischer
On Wed, 27 May 2015 at 10:34:44, Gordian Edenhofer wrote: > [...] > > We use XHTML 1.0, not HTML5. It probably works in most browsers > > anyway > > but we should at least use 'autofocus="autofocus"' for XHTML > > compliance > > and mention it in the commit message. > > Sorry, I forgot about tha

Re: [aur-dev] [PATCH] Autofocus username input field at login screen

2015-05-27 Thread Lukas Fleischer
On Sun, 24 May 2015 at 22:51:19, Gordian Edenhofer wrote: > At the login page, the user is promted for the username and the > corresponding password. At this point the user is required to > click the field in which he should place the input. > This can be easily simplified with HTML5 using the auto

Re: [aur-dev] Some notes on AUR 4.0.0

2015-05-27 Thread Lukas Fleischer
On Tue, 26 May 2015 at 13:33:58, Lukas Fleischer wrote: > Hi, > > As Florian already mentioned in another email, I am away until June 1st. > I am on a roaming data plan, so I won't be able to reply to all the > feedback and questions on the new AUR until then. I hope that I a

[aur-dev] Some notes on AUR 4.0.0

2015-05-26 Thread Lukas Fleischer
Hi, As Florian already mentioned in another email, I am away until June 1st. I am on a roaming data plan, so I won't be able to reply to all the feedback and questions on the new AUR until then. I hope that I am going to address at least some of the concerns and questions here, though. For the gr

Re: [aur-dev] [RFC] Draft of the AUR 4.0.0 migration notification

2015-05-23 Thread Lukas Fleischer
On Sat, 23 May 2015 at 11:07:25, Lukas Fleischer wrote: > [...] > > [1] > https://wiki.archlinux.org/index.php/Arch_User_Repository#Submitting_packages_to_aur-dev.archlinux.org > [2] https://bugs.archlinux.org/index.php?project=2 > > Note that aur4.archlinux.org

[aur-dev] [PATCH] config.proto: Fix default value of ssh-cmdline

2015-05-23 Thread Lukas Fleischer
We no longer use port for SSH. Signed-off-by: Lukas Fleischer --- conf/config.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/config.proto b/conf/config.proto index 623d044..88f046d 100644 --- a/conf/config.proto +++ b/conf/config.proto @@ -39,7 +39,7 @@ repo

[aur-dev] [RFC] Draft of the AUR 4.0.0 migration notification

2015-05-23 Thread Lukas Fleischer
Hi, I just added a section to the AUR article in the Arch wiki that describes how to submit packages to the new AUR. Here is a draft of the notification that I plan to send to all AUR package maintainers on June 1st: Hello, This is an automated email to all AUR package maintainers.

[aur-dev] [PATCH] Include user name in password reset emails

2015-05-22 Thread Lukas Fleischer
Fixes FS#44320. Signed-off-by: Lukas Fleischer --- web/html/passreset.php | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/html/passreset.php b/web/html/passreset.php index fca3d10..29f2c64 100644 --- a/web/html/passreset.php +++ b/web/html/passreset.php

[aur-dev] [PATCH v3] Move package disowning to a separate page

2015-05-22 Thread Lukas Fleischer
The disown link in the package actions box leads to a new page (pkgdisown.php) that can be used to confirm package disowning. Signed-off-by: Lukas Fleischer --- Do not show a bogus message about transferring ownership when disowning as a Trusted User or Developer. web/html/index.php | 4

[aur-dev] [PATCH 2/2] Update co-maintainer list when promoting a user

2015-05-22 Thread Lukas Fleischer
When a user disowns a package and promotes a co-maintainer, remove that new maintainer from the list of package co-maintainers. Since only the package maintainer can manage co-maintainers, this must happen before the actual disown operation. Signed-off-by: Lukas Fleischer --- web/lib

[aur-dev] [PATCH 1/2] Fix processing of pkgbase_get_comaintainers()

2015-05-22 Thread Lukas Fleischer
pkgbase_get_comaintainers() returns an array of user names, not an array of user IDs. Signed-off-by: Lukas Fleischer --- web/html/pkgdisown.php | 6 +++--- web/lib/pkgbasefuncs.inc.php | 15 +-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/web/html

[aur-dev] [PATCH v2 3/3] Move package disowning to a separate page

2015-05-22 Thread Lukas Fleischer
The disown link in the package actions box leads to a new page (pkgdisown.php) that can be used to confirm package disowning. Signed-off-by: Lukas Fleischer --- Actually check whether the confirmation checkbox was selected. web/html/index.php | 4 ++-- web/html/pkgbase.php | 9

[aur-dev] [PATCH] Store co-maintainer priorities

2015-05-22 Thread Lukas Fleischer
In addition to saving the list of package co-maintainers, also save their order. This makes it possible to define a "primary" co-maintainer. Signed-off-by: Lukas Fleischer --- schema/aur-schema.sql| 1 + upgrading/4.0.0.txt | 1 + web/lib/pkgbasefuncs.inc.php | 7

[aur-dev] [PATCH v2 1/3] Use keyword search by default

2015-05-22 Thread Lukas Fleischer
e name or description. This is much more convenient and general than a simple substring search (one can still perform a substring search by quoting the whole search term). Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) dif

[aur-dev] [PATCH 1/3] Fix the permission check in pkgbase_adopt()

2015-05-22 Thread Lukas Fleischer
Filter the affected package bases before closing any package requests. Signed-off-by: Lukas Fleischer --- web/lib/pkgbasefuncs.inc.php | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php

[aur-dev] [PATCH v2 2/3] Do not allow more than 20 terms in search queries

2015-05-22 Thread Lukas Fleischer
Specifying a huge number of search terms currently results in complex SQL queries. In practice, queries with more than 20 terms are rarely needed. Ignore everything apart from the first 20 keywords to prevent from potential abuse. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 11

[aur-dev] [PATCH 3/3] Move package disowning to a separate page

2015-05-22 Thread Lukas Fleischer
The disown link in the package actions box leads to a new page (pkgdisown.php) that can be used to confirm package disowning. Signed-off-by: Lukas Fleischer --- web/html/index.php | 4 ++-- web/html/pkgdisown.php | 55 ++ 2 files changed, 57

[aur-dev] [PATCH v2 3/3] Support boolean operators in search queries

2015-05-22 Thread Lukas Fleischer
This adds very basic support for boolean search queries such as "video or movie" or "lin and not linux". However, nested queries such as "(video or movie) and editing" are not (yet) supported. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 19 +

[aur-dev] [PATCH 2/3] Update co-maintainers when disowning a package

2015-05-22 Thread Lukas Fleischer
When a user disowns a package, the co-maintainer with the highest priority automatically becomes the new maintainer. When the package is disowned by a Trusted User or a Developer, the list of co-maintainers is cleared. Signed-off-by: Lukas Fleischer --- web/lib/pkgbasefuncs.inc.php | 18

Re: [aur-dev] [PATCH] Use keyword search by default

2015-05-22 Thread Lukas Fleischer
On Fri, 22 May 2015 at 12:06:52, Lukas Fleischer wrote: > Signed-off-by: Lukas Fleischer > --- > web/lib/pkgfuncs.inc.php | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > [...] Forgot to mark this as RFC. What this patch does is change the default search mod

[aur-dev] [PATCH] Use keyword search by default

2015-05-22 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index c71358a..8fd629f 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -601,9

[aur-dev] [PATCH] Update upgrade instructions for 4.0.0

2015-05-22 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- upgrading/4.0.0.txt | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/upgrading/4.0.0.txt b/upgrading/4.0.0.txt index b1582f2..023dec0 100644 --- a/upgrading/4.0.0.txt +++ b/upgrading/4.0.0.txt @@ -1,14 +1,18 @@ +WARNING

[aur-dev] [PATCH] Make the type parameter of pkgreq_by_pkgbase() optional

2015-05-21 Thread Lukas Fleischer
This simplifies the code a bit, improves maintainability and reduces the number of SQL queries when deleting a package. Signed-off-by: Lukas Fleischer --- web/lib/pkgbasefuncs.inc.php | 5 + web/lib/pkgreqfuncs.inc.php | 9 ++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff

[aur-dev] aur-dev no longer uses port 2222 for SSH

2015-05-21 Thread Lukas Fleischer
Hi, If you are using the AUR 4.0.0 testing environment on aur-dev.archlinux.org, please note that we now use the default SSH port 22 instead of . This means that you can drop the ":" part from your Git remote URIs or remove the "Port " line from your local SSH configuration. We are cu

[aur-dev] [PATCH] Change default configuration to use SSH port 22

2015-05-21 Thread Lukas Fleischer
We no longer run a separate SSH daemon on port . Change the default configuration accordingly. Also remove some configuration files that are no longer needed. Signed-off-by: Lukas Fleischer --- conf/aur-sshd.socket| 6 -- conf/aur-sshd@.service | 8

[aur-dev] [PATCH v2] Remove the OpenSSH patch

2015-05-21 Thread Lukas Fleischer
Extended AuthorizedKeysCommand parameters are now officially supported by OpenSSH. Signed-off-by: Lukas Fleischer --- Forgot to add git-auth.sh in the previous version. INSTALL| 41 +- .../0001-Patch-sshd-for-the-AUR.patch | 1094

[aur-dev] [PATCH] Remove the OpenSSH patch

2015-05-21 Thread Lukas Fleischer
Extended AuthorizedKeysCommand parameters are now officially supported by OpenSSH. Signed-off-by: Lukas Fleischer --- INSTALL| 41 +- .../0001-Patch-sshd-for-the-AUR.patch | 1094 2 files changed, 15 insertions

[aur-dev] [PATCH] Fix email body of password reset emails

2015-05-17 Thread Lukas Fleischer
without any description. Fix this by terminating the assignment with a semicolon again. Signed-off-by: Lukas Fleischer --- web/html/passreset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/html/passreset.php b/web/html/passreset.php index fecefe4..d1b57a4 100644 --- a

Re: [aur-dev] AUR 4 and licensing

2015-04-13 Thread Lukas Fleischer
On Mon, 13 Apr 2015 at 14:26:08, David Manouchehri wrote: > > Showing it during a push would be flawed because then it's too late for > them not to agree to it. > > A Git pre-commit hook on the server side should be fine. On the web side of > the AUR, a list of accepted ToS users should be kept, a

Re: [aur-dev] AUR 4 and licensing

2015-04-12 Thread Lukas Fleischer
On Sun, 12 Apr 2015 at 01:47:10, Johannes Löthberg wrote: > [...] > To mitigate this I’d propose making a ToS for the AUR that for one says > that the user agrees to either license the PKGBUILD and accompanying > scripts under a specific license, or that they agree to assign copyright > to Arch

[aur-dev] [PATCH 1/2] Allow users to delete their own packages

2015-03-04 Thread Lukas Fleischer
Allow users to remove their own package bases for a short period of time after initial submission (defaults to one day). Implements FS#43648. Signed-off-by: Lukas Fleischer --- conf/config.proto| 1 + web/lib/pkgbasefuncs.inc.php | 5 +++-- web/lib/pkgreqfuncs.inc.php | 14

[aur-dev] [PATCH 2/2] Automatically close requests

2015-03-04 Thread Lukas Fleischer
Close requests automatically when a package is deleted or orphaned. Implements FS#43799. Signed-off-by: Lukas Fleischer --- web/lib/pkgbasefuncs.inc.php | 31 ++- web/lib/pkgreqfuncs.inc.php | 21 + 2 files changed, 51 insertions(+), 1 deletion

Re: [aur-dev] Remove category support

2015-02-27 Thread Lukas Fleischer
On Fri, 27 Feb 2015 at 17:20:36, Dustin Falgout wrote: > [...] > That's a neat idea which certainly is easy enough to accomplish. Though I > don't think such tags should replace the categories. Users may not always > know exactly what app/package they are looking for. Categories are the best > way

Re: [aur-dev] Remove category support

2015-02-27 Thread Lukas Fleischer
On Fri, 27 Feb 2015 at 14:56:40, Dustin Falgout wrote: > [...] > Well, I think the natural place to start is the freedesktop.org spec. I > think it makes sense to use all the main categories[1] and then choose a > few child categories from the Additional Categories[2] defined by the spec. > I pre

[aur-dev] [PATCH] Update .gitignore

2015-02-04 Thread Lukas Fleischer
* Remove user-specific configuration. * Update with latest changes to the configuration file and templates. * Order entries alphabetically. Signed-off-by: Lukas Fleischer --- .gitignore | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore

[aur-dev] [PATCH v2] Rename the AUR software to aurweb

2015-02-04 Thread Lukas Fleischer
Rename the project to help differentiate between the software providing access to the Arch User Repository and the collection of source packages itself. Signed-off-by: Lukas Fleischer --- Add some missing adjustments. Keep using the aur-dev mailing list for now. AUTHORS

[aur-dev] [PATCH/RFC] Rename the AUR software to aurweb

2015-01-29 Thread Lukas Fleischer
Rename the project to help differentiate between the software providing access to the Arch User Repository and the collection of source packages itself. Signed-off-by: Lukas Fleischer --- AUTHORS | 2 +- INSTALL | 4 +- README | 26

Re: [aur-dev] Renaming the AUR

2015-01-29 Thread Lukas Fleischer
On Thu, 29 Jan 2015 at 09:37:56, Lukas Fleischer wrote: > [...] > What would need to be changed: > > * The name of the aur.git repository would become aurweb.git. > > * Several references in the AUR(web) source code need to be fixed, the > header will still refer to the

[aur-dev] Renaming the AUR

2015-01-29 Thread Lukas Fleischer
Hi, Currently, we use the term "AUR" for both the collection of user-supplied source packages and the software that helps with accessing and modifying these packages which causes quite some misunderstandings. Earlier, it was suggested to use "[unsupported]" for the collection of packages and "AUR"

Re: [aur-dev] Please enable zh_TW locale on AUR

2015-01-26 Thread Lukas Fleischer
On Mon, 26 Jan 2015 at 13:27:39, 黃柏諺 wrote: > As title says,please enable AUR's zh_TW locale,it should be 100% on > Transifex now. :D > [...] I am going to pull the translations before the next major AUR release. Thanks for contributing!

[aur-dev] [PATCH v2] AUTHORS: Add past maintainers

2015-01-19 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- Add Eric's full name. AUTHORS | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 6581e81..9011a3f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,9 +1,19 @@ Current Mainta

[aur-dev] [PATCH] AUTHORS: Add past maintainers

2015-01-19 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- AUTHORS | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 6581e81..1958ca0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,9 +1,19 @@ Current Maintainers --- -* canyonknight * Lukas Fleischer

[aur-dev] [PATCH] git-update.py: Check for mandatory fields

2015-01-15 Thread Lukas Fleischer
Check explicitly whether pkgver, pkgrel, pkgname, pkgdesc and url are available in each package. If any of these is missing, an exception might occur when parsing the meta data later. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 4 1 file changed, 4 insertions

Re: [aur-dev] AUR 4.0.0 version tags

2015-01-13 Thread Lukas Fleischer
On Tue, 13 Jan 2015 at 16:43:53, Marcel Korpel wrote: > [...] > I like the idea of having tags, but not that the server applies them in > the background: it's too error prone if users have to manually type > `&& git pull` behind there `git push`. Perhaps a simple script, > possibly included in pkg

Re: [aur-dev] AUR 4.0.0 version tags

2015-01-12 Thread Lukas Fleischer
On Mon, 12 Jan 2015 at 19:17:35, Yaron de Leeuw wrote: > Hi. > I have a suggestion for AUR 4.0.0: git tags with version information. > The idea is that each and every commit will be tagged with the version > extracted from .SRCINFO. Only the server will be allowed to apply tags > (maybe a simple ch

<    4   5   6   7   8   9   10   11   12   13   >