[aur-dev] [PATCH] Use custom templates for Git repositories

2015-01-12 Thread Lukas Fleischer
Do not waste disk space by copying dozens of unneeded sample hooks. Use a custom template directory that only includes the git-update hook. Signed-off-by: Lukas Fleischer --- INSTALL | 12 conf/config.proto| 1 + scripts/git

[aur-dev] [PATCH] Add to notification list on repository creation

2015-01-10 Thread Lukas Fleischer
remedy this, add the owner to the notification list when setting up a new repository. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py index

[aur-dev] [PATCH] config.proto: Add prototype for ssh-cmdline

2015-01-09 Thread Lukas Fleischer
This should have been added in 1b627a3 (git-serve.py: Improve error messages, 2015-01-01). Signed-off-by: Lukas Fleischer --- conf/config.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/config.proto b/conf/config.proto index 28ac761..a3b1640 100644 --- a/conf/config.proto +++ b

[aur-dev] [PATCH] Link to the cgit log from package details

2015-01-09 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 5 - web/template/pkgbase_details.php | 5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 52afba2..c1c07ba 100644 --- a/web/template

[aur-dev] [PATCH] Rewrite aurblup in Python

2015-01-09 Thread Lukas Fleischer
The AUR backend already uses several Python scripts, rewrite the aurblup helper as well. This has several advantages: * We can easily use the main configuration file without using any shell script wrappers. * aurblup does not need to be recompiled on libalpm soname bumps. Signed-off-by: Lukas

[aur-dev] [PATCH] aurblup: Do not blacklist provides

2015-01-09 Thread Lukas Fleischer
This partly reverts commit ddc5435 (Add packages' provides and replaces to the blacklist in aurblup., 2011-02-08). While adding replaces is fine, blacklisting provides prevents from uploading alternative implementations of a program which is not what we want. Fixes FS#43381. Signed-off-by:

[aur-dev] [PATCH] git-update.py: Do not wipe repository descriptions

2015-01-08 Thread Lukas Fleischer
Only update repository descriptions if there is at least one package in the package base meta data. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/git-integration/git-update.py b

[aur-dev] [PATCH] git-update.py: Reject blacklisted packages

2015-01-08 Thread Lukas Fleischer
Reject commits adding packages which are in the official repositories already. Fixes FS#43371. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/git-integration/git-update.py

[aur-dev] [PATCH] Fix link to package base voters

2015-01-07 Thread Lukas Fleischer
Reported-by: Bartłomiej Piotrowski Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 359ea3c..52afba2 100644 --- a/web/template/pkg_details.php

Re: [aur-dev] [PATCH v2] git-update.py: Support architecture-specific fields

2015-01-07 Thread Lukas Fleischer
On Wed, 07 Jan 2015 at 12:31:59, Lukas Fleischer wrote: > Fixes FS#43356. > > Signed-off-by: Lukas Fleischer > --- > scripts/git-integration/git-update.py | 51 > ++- > 1 file changed, 32 insertions(+), 19 deletions(-) > [...] Whoops,

[aur-dev] [PATCH v2] Add support for package base co-maintainers

2015-01-07 Thread Lukas Fleischer
the list of co-maintainers from the Package Actions box. Implements FS#17911. Signed-off-by: Lukas Fleischer --- schema/aur-schema.sql | 11 ++ scripts/git-integration/git-serve.py | 11 +++--- scripts/git-integration/git-update.py | 8 +++-- upgrading/4.0.0.txt

[aur-dev] [PATCH v2] git-update.py: Support architecture-specific fields

2015-01-07 Thread Lukas Fleischer
Fixes FS#43356. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 51 ++- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py index 6888ad0

[aur-dev] [PATCH] git-update.py: Support architecture-specific fields

2015-01-07 Thread Lukas Fleischer
Fixes FS#43356. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 51 ++- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py index 6888ad0

[aur-dev] [PATCH] Add support for package base co-maintainers

2015-01-07 Thread Lukas Fleischer
the list of co-maintainers from the Package Actions box. Implements FS#17911. Signed-off-by: Lukas Fleischer --- schema/aur-schema.sql | 11 ++ scripts/git-integration/git-serve.py | 11 +++--- scripts/git-integration/git-update.py | 8 +++-- upgrading/4.0.0.txt

[aur-dev] [PATCH] git-serve.py: Allow TUs to push to any repository

2015-01-07 Thread Lukas Fleischer
Implements FS#32807. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py index d551dba..227e37b 100755 --- a/scripts/git-integration/git

[aur-dev] [PATCH 2/2] git-serve.py: Adopt repositories on creation

2015-01-06 Thread Lukas Fleischer
Automatically assign ownership when creating a new (empty) repository. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py

[aur-dev] [PATCH 1/2] git-serve.py: Automatically create repositories

2015-01-06 Thread Lukas Fleischer
Create a fresh Git repository when cloning or pushing using a path that does not yet exist. Implements FS#43308. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/git-integration/git-serve.py b/scripts/git

[aur-dev] [PATCH] git-serve.py: Relax path validation

2015-01-02 Thread Lukas Fleischer
Make the terminating slash in repository URLs optional. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py index 3669a73

[aur-dev] [PATCH 1/2] git-serve.py: Improve error messages

2015-01-01 Thread Lukas Fleischer
Also, add a help command that lists available options. Implements FS#43287. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/scripts/git-integration/git-serve.py b

[aur-dev] [PATCH 2/2] git-serve.py: Add a command to list repositories

2015-01-01 Thread Lukas Fleischer
The list-repos command now lists all repositories you maintain. Empty repositories are prefixed with an asterisk. Implements FS#43288. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 22 ++ 1 file changed, 22 insertions(+) diff --git a/scripts/git

[aur-dev] [PATCH] INSTALL: Add some notes

2015-01-01 Thread Lukas Fleischer
* Add more details on how to configure the web server. * Clarify that the OpenSSH patch is build against OpenSSH 6.7p1. Signed-off-by: Lukas Fleischer --- INSTALL | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 72e7539..2368db1 100644 --- a

Re: [aur-dev] Accessing web interface on locally installed AUR, was: Re: Problem compiling OpenSSH

2014-12-31 Thread Lukas Fleischer
On Wed, 31 Dec 2014 at 02:05:59, Marcel Korpel wrote: > * Lukas Fleischer (Tue, 30 Dec 2014 18:14:19 > +0100): > > The patch is built against OpenSSH 6.7p1. Try running `git checkout > > V_6_7_P1` before applying the patch and running `make`. > > After doing so, everythin

Re: [aur-dev] Problem compiling OpenSSH

2014-12-30 Thread Lukas Fleischer
On Tue, 30 Dec 2014 at 17:14:38, Marcel Korpel wrote: > Perhaps I'm not that sharp, but I'm not able to compile OpenSSH > succesfully. > > I followed all steps in INSTALL, but things fail for me after issuing > `make` in step 5. My terminal reads: > > > auth2-pubkey.c: In function ‘user_key_comm

Re: [aur-dev] AUR 4.0.0 pre-alpha

2014-12-30 Thread Lukas Fleischer
On Tue, 30 Dec 2014 at 16:22:43, Jameson wrote: > On Mon, Dec 29, 2014 at 4:01 PM, Lukas Fleischer > wrote: > > In order to submit > > packages, you can follow these steps: > > > I have followed the steps, but for some reason it doesn't seem to like > my key

Re: [aur-dev] AUR 4.0.0 pre-alpha

2014-12-30 Thread Lukas Fleischer
On Tue, 30 Dec 2014 at 15:56:12, Marcel Korpel wrote: > * Lukas Fleischer (Mon, 29 Dec 2014 22:01:45 > +0100): > > The 4.0.0 release brings Git repositories to AUR packages. You can > > test a pre-alpha version at aur-dev.archlinux.org > > Suggestion: when downloadin

[aur-dev] [PATCH] git-update.py: Cast epoch to an integer

2014-12-30 Thread Lukas Fleischer
Convert epoch values before doing integer comparisons. Also, add a sanity check for the epoch variable. Reported-by: Ido Rosen Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/git

Re: [aur-dev] [aur-general] AUR 4.0.0 pre-alpha

2014-12-29 Thread Lukas Fleischer
On Mon, 29 Dec 2014 at 22:16:45, Ido Rosen wrote: > Will all existing AUR packages automatically get their own git > repositories or will we have to resubmit all packages? > [...] Both. The current plan is as follows: A couple of weeks before the official release of 4.0.0, I will reset the setup

[aur-dev] AUR 4.0.0 pre-alpha

2014-12-29 Thread Lukas Fleischer
The 4.0.0 release brings Git repositories to AUR packages. You can test a pre-alpha version at aur-dev.archlinux.org [1]. In order to submit packages, you can follow these steps: 1. Create a new SSH key pair for the AUR. While this step is not strictly necessary (you can use any existing SSH ke

Re: [aur-dev] Architecture specific fields and RPC interface

2014-12-29 Thread Lukas Fleischer
On Mon, 29 Dec 2014 at 13:13:12, Rémy Marquis wrote: > Hi Lukas, > > Thanks for the great work achieved with AUR 3.5.0/3.5.1. > > Pacman 4.2 and AUR support the new architecture specific fields (such > as depends_x86_64, depends_i686). I however just realized that the RPC > interface (v3) now lis

[aur-dev] [PATCH] Disallow specifying an SSH key during registration

2014-12-29 Thread Lukas Fleischer
Make sure that users confirm their email addresses before setting an initial SSH key. 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/account_edit_form.php index

[aur-dev] [PATCH] Add systemd unit files for the AUR sshd

2014-12-29 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- INSTALL| 7 +-- conf/aur-sshd.socket | 6 ++ conf/aur-sshd@.service | 8 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 conf/aur-sshd.socket create mode 100644 conf/aur-sshd@.service diff --git a

[aur-dev] [PATCH 3/3] Add links to public and private clone URLs

2014-12-29 Thread Lukas Fleischer
Show a public clone URL (using Git over HTTP) by default and only show the private clone URL to the package maintainer. Signed-off-by: Lukas Fleischer --- conf/cgitrc.proto| 2 +- conf/config.proto| 3 ++- web/template/pkg_details.php | 10 -- web

[aur-dev] [PATCH 2/3] Use the AUR footer in cgit

2014-12-29 Thread Lukas Fleischer
Use the footer that is already used in other parts of the AUR website instead of the footer from the main Arch Linux website. Signed-off-by: Lukas Fleischer --- web/html/css/cgit.css | 9 + web/template/cgit/footer.html | 12 +--- 2 files changed, 14 insertions(+), 7

[aur-dev] [PATCH 1/3] Use a custom logo

2014-12-29 Thread Lukas Fleischer
home page instead of the main Arch Linux website. Signed-off-by: Lukas Fleischer --- web/html/css/archnavbar/aurlogo.png | Bin 0 -> 5997 bytes web/html/css/aur.css| 4 web/html/css/cgit.css | 4 web/html/index.php | 1 + web/

[aur-dev] AUR 3.5.1 released

2014-12-29 Thread Lukas Fleischer
Hello, I am pleased to announce that AUR 3.5.1 has been released. The official AUR setup [1] has already been updated. Apart from several bug fixes, this release deprecates mkaurball. We now recommend to use `makepkg --source` from pacman 4.2.0. For a comprehensive list of changes, please consul

[aur-dev] [PATCH 2/2] config.proto: Sync default values with aur.archlinux.org

2014-12-28 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- conf/config.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/config.proto b/conf/config.proto index f726e97..f09c02e 100644 --- a/conf/config.proto +++ b/conf/config.proto @@ -17,9 +17,9 @@ login_timeout = 7200

[aur-dev] [PATCH 1/2] Add cgit configuration and style sheet

2014-12-28 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- conf/cgitrc.proto | 29 ++ web/html/css/cgit.css | 853 ++ web/html/index.php| 1 + web/template/cgit/footer.html | 8 + web/template/cgit/header.html | 14 + 5 files changed, 905

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

2014-12-28 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- upgrading/4.0.0.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/upgrading/4.0.0.txt b/upgrading/4.0.0.txt index 543fbac..f990c37 100644 --- a/upgrading/4.0.0.txt +++ b/upgrading/4.0.0.txt @@ -3,3 +3,17 @@ ALTER TABLE Users ADD

[aur-dev] [PATCH 2/2] Hide fresh package bases from stats and results

2014-12-28 Thread Lukas Fleischer
Do not show package bases that have just been created in the package update statistics or in the search results. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 2 +- web/lib/stats.inc.php| 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/lib

[aur-dev] [PATCH 1/2] Add a script to initialize Git repositories

2014-12-28 Thread Lukas Fleischer
Introduce a script that creates one repository for each package base in the database. Signed-off-by: Lukas Fleischer --- scripts/git-integration/init-repos.py | 51 +++ 1 file changed, 51 insertions(+) create mode 100755 scripts/git-integration/init-repos.py

[aur-dev] [PATCH] git-serve.py: Use virtual paths

2014-12-28 Thread Lukas Fleischer
Pretend that all repositories are located in the root directory of the file system to achieve location transparency. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/git-integration/git-serve.py

[aur-dev] [PATCH v2 05/10] Use Git repositories to store packages

2014-12-27 Thread Lukas Fleischer
* Remove package submission page from the web interface. * Replace PKGBUILD and tarball links with links to cgit. * Remove the "URLPath" field from RPC replies. Signed-off-by: Lukas Fleischer --- conf/config.proto|5 +- web/html/pkgsubmit.php | 489 -

[aur-dev] [PATCH v2 10/10] Remove legacy scripts

2014-12-27 Thread Lukas Fleischer
These are no longer needed. We use Git repositories now. Signed-off-by: Lukas Fleischer --- scripts/cleanup | 46 -- scripts/uploadbuckets.sh | 58 2 files changed, 104 deletions(-) delete mode 100755

[aur-dev] [PATCH v2 08/10] Honor the database socket setting in Git scripts

2014-12-27 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-auth.py | 3 ++- scripts/git-integration/git-serve.py | 6 -- scripts/git-integration/git-update.py | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/git-integration/git-auth.py b/scripts/git

[aur-dev] [PATCH v2 09/10] git-update.py: Update repository description

2014-12-27 Thread Lukas Fleischer
Use the package description of the first package as the Git repository description. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py

[aur-dev] [PATCH v2 07/10] Add sshd setup instructions

2014-12-27 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- INSTALL| 108 --- .../0001-Patch-sshd-for-the-AUR.patch | 152 + scripts/git-integration/sshd_config| 6 + 3 files changed, 185 insertions(+), 81

[aur-dev] [PATCH v2 06/10] Add public clone URLs to package details

2014-12-27 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- conf/config.proto| 1 + web/template/pkg_details.php | 5 + web/template/pkgbase_details.php | 5 + 3 files changed, 11 insertions(+) diff --git a/conf/config.proto b/conf/config.proto index d20b533..f726e97 100644 --- a/conf

[aur-dev] [PATCH v2 00/10] Use Git repositories to store AUR packages

2014-12-27 Thread Lukas Fleischer
This is a reroll of the series I submitted in June. I would like to merge this into master soon and start testing stuff, so any reviews are highly appreciated. Lukas Fleischer (10): Use raw scanner mode in config_get() Add support for adding SSH public keys to profiles Add basic Git

[aur-dev] [PATCH v2 04/10] Add update hook template

2014-12-27 Thread Lukas Fleischer
This adds a script that can be used as an update hook to check all commits for validity and to regenerate the package details page before updating a named ref. Signed-off-by: Lukas Fleischer --- conf/config.proto | 1 + scripts/git-integration/aurinfo.py| 204

[aur-dev] [PATCH v2 03/10] Add basic Git authentication/authorization scripts

2014-12-27 Thread Lukas Fleischer
. * git-serve.py is a wrapper around git-shell(1) that checks whether the user passed as command line argument has access to the Git repository that a push operation writes to. Signed-off-by: Lukas Fleischer --- conf/config.proto| 11 scripts/git-integration/git-auth.py

[aur-dev] [PATCH v2 02/10] Add support for adding SSH public keys to profiles

2014-12-27 Thread Lukas Fleischer
Users can now add an SSH public key on the account edit page. This will later be used to authenticate users via SSH. Signed-off-by: Lukas Fleischer --- schema/aur-schema.sql | 1 + upgrading/4.0.0.txt| 5 +++ web/html/account.php | 5 ++- web/lib

[aur-dev] [PATCH v2 01/10] Use raw scanner mode in config_get()

2014-12-27 Thread Lukas Fleischer
We do not want PHP to parse the values for us. Use raw scanner mode to avoid issues with certain values, such as regular expressions. Signed-off-by: Lukas Fleischer --- web/lib/confparser.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/confparser.inc.php b

[aur-dev] [PATCH] mkpkglists.py: Honor database socket setting

2014-12-26 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- scripts/mkpkglists.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py index 173f5f7..0f2eb84 100755 --- a/scripts/mkpkglists.py +++ b/scripts/mkpkglists.py @@ -15,10 +15,11 @@ aur_db_host

[aur-dev] [PATCH] Suggest using makepkg instead of mkaurball

2014-12-19 Thread Lukas Fleischer
pacman 4.2.0 supports .SRCINFO and generates meta data by default. Signed-off-by: Lukas Fleischer --- README | 8 web/html/pkgsubmit.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index 7688ab5..6e7c414 100644 --- a/README

Re: [aur-dev] [PATCH] Fixes incorrect SQLs on generating dummy data.

2014-12-15 Thread Lukas Fleischer
On Tue, 16 Dec 2014 at 02:03:11, Shinya Yamaoka wrote: > > Looks good to me at a glance. We should probably extend the script to > > create architecture-specific depends/relations/sources as well, > > though. > > Thank you for your reviewing. > Do you mean you would like to merge my patch after my

Re: [aur-dev] [PATCH] Fixes incorrect SQLs on generating dummy data.

2014-12-10 Thread Lukas Fleischer
On Sun, 07 Dec 2014 at 08:19:04, Shinya Yamaoka wrote: > The number of columns in the SQLs doesn't match the number of rows, > so an error like below occurs: > > ERROR 1136 (21S01) at line 50929: Column count doesn't match value count > at row 1 > > Signed-off-by: Shinya Yamaoka > --- > schema/

Re: [aur-dev] AUR 3.5.0 released

2014-11-24 Thread Lukas Fleischer
On Tue, 25 Nov 2014 at 01:17:50, Xyne wrote: > [...] > Will that include an option to anonymize the local user data in the generated > archive? I currently have my own wrapper named "mkanonaurball" to replace the > user with "nobody" etc. > > Sorry if I've missed a relevant discussion about this.

[aur-dev] AUR 3.5.0 released

2014-11-22 Thread Lukas Fleischer
Hello, I am pleased to announce that AUR 3.5.0 has been released. The official AUR setup [1] has already been updated. This release adds support for architecture-specific sources (resp. provides, conflicts, replaces) and for .SRCINFO, both of which will be included in the next pacman release. Apa

[aur-dev] [PATCH] Add support for architecture-specific sources

2014-10-10 Thread Lukas Fleischer
As a follow-up to 4d7da95 (Add support for architecture-specific fields, 2014-08-10), handle architecture-specific source fields as well. Signed-off-by: Lukas Fleischer --- schema/aur-schema.sql| 1 + upgrading/3.5.0.txt | 1 + web/html/pkgsubmit.php | 8 +--- web

[aur-dev] [PATCH 2/2] Add a script to generate package lists

2014-10-10 Thread Lukas Fleischer
This can be used to regularly generate lists of packages and package bases that are made available under /packages.gz and /pkgbase.gz, respectively. Signed-off-by: Lukas Fleischer --- scripts/config.proto | 5 + scripts/mkpkglists.py | 38 ++ web/html

[aur-dev] [PATCH 1/2] Use readfile() instead of include for static files

2014-10-10 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- web/html/index.php | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/html/index.php b/web/html/index.php index e05b555..91d0222 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -143,12 +143,12 @@ if (!empty($tokens[1

[aur-dev] [PATCH 1/2] Fix permission check in pkgreq_close()

2014-10-03 Thread Lukas Fleischer
Make sure that requests can be auto-accepted if filed by a regular user. Signed-off-by: Lukas Fleischer --- web/lib/pkgreqfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php index 9207043..b2a7089 100644

[aur-dev] [PATCH 2/2] Include proper timestamp in auto-accept emails

2014-10-03 Thread Lukas Fleischer
Fixes a regression introduced in c70b340 (Close requests before accepting, 2014-07-29). Signed-off-by: Lukas Fleischer --- web/lib/pkgreqfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php index b2a7089

[aur-dev] [PATCH] rss.php: Include package functions

2014-10-03 Thread Lukas Fleischer
This is needed since 4426877 (Move latest_pkgs() to pkgfuncs.inc.php, 2014-05-29). Signed-off-by: Lukas Fleischer --- web/html/rss.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/html/rss.php b/web/html/rss.php index 84d2205..2470d99 100644 --- a/web/html/rss.php +++ b/web/html

[aur-dev] [PATCH] Use proper email address in send_resetkey()

2014-09-07 Thread Lukas Fleischer
Fixes FS#41860. Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index e3ff494..2272010 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php

Re: [aur-dev] Sorting AUR packages according to 'Voted' or 'Notify' field.

2014-08-31 Thread Lukas Fleischer
On Sat, 30 Aug 2014 at 12:30:27, Karol Blazewicz wrote: > When sorting the package list for the packages I voted for or I'm on > the notify list, I have to use the descending sort order, otherwise > the list starts with the packages I _haven't_ voted for or I'm _not > notified_ about. Doing so howe

Re: [aur-dev] pkgbase queries via RPC interface

2014-08-16 Thread Lukas Fleischer
On Sat, 16 Aug 2014 at 21:04:05, kachelaqa wrote: > [...] > The only other thing that can't be fully implemented on the client side > is negation. It's possible to exclude terms if they are combined with at > least one other positive term. For instance, to search for "foo" AND NOT > "bar", you c

Re: [aur-dev] pkgbase queries via RPC interface

2014-08-16 Thread Lukas Fleischer
On Sat, 16 Aug 2014 at 20:42:21, Colin Woodbury wrote: > And for helpers to have to redownload that that frequently would be a pain. > Would it update when a new package was uploaded or changed? > [...] Well, pacman needs to frequently reload the package databases as well (every time you run `pacm

Re: [aur-dev] pkgbase queries via RPC interface

2014-08-16 Thread Lukas Fleischer
On Sat, 16 Aug 2014 at 05:25:12, Xyne wrote: > [...] > That works for me. In that case, the method should accept a list of fields to > search (pkgname, pkgbase, pkgdesc, maintainer, deps, url?, etc.). There should > be a way to search for exact matches (e.g. to retrieve data about a specific > pack

Re: [aur-dev] pkgbase queries via RPC interface

2014-08-14 Thread Lukas Fleischer
On Wed, 13 Aug 2014 at 06:56:00, Xyne wrote: > Hi, > > The RPC search, info and multiinfo methods return no data when the pkgbase is > passed as the argument. > > I would like to discuss the following ideas: > > A) Return all of the packages in the pkgbase for search, info and multiinfo >que

[aur-dev] [PATCH] Add support for architecture-specific fields

2014-08-10 Thread Lukas Fleischer
This adds support for architecture-specific dependencies and relations. Support for this has recently been added to makepkg, see commit 2b556d8 (PKGBUILD: handle arch specific attributes, 2014-07-25) in the pacman repository for details. Signed-off-by: Lukas Fleischer --- schema/aur-schema.sql

[aur-dev] [PATCH] Group dependencies by dependency type

2014-08-10 Thread Lukas Fleischer
Implements FS#40888. Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 10 ++ 1 file changed, 10 insertions(+) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 7f01d2f..8a3cbcc 100644 --- a/web/template/pkg_details.php +++ b/web/template

Re: [aur-dev] [PATCH] Group package dependencies by their type

2014-08-09 Thread Lukas Fleischer
On Sat, 09 Aug 2014 at 21:28:03, Mathieu Gaborit wrote: > Sort dependencies by type, implements feature request in FS#40888 > > Dependencies are fetched like before and a sort is applied on dependencies > type if > $deps array is not empty. Display is adjusted accordingly. > [...] I like the sug

[aur-dev] [PATCH 2/2] Add permission checks to the request feature

2014-08-08 Thread Lukas Fleischer
* Only show the request form to users that are logged in. * Only show the close request form to Trusted Users and developers. * Check for a valid login in pkgreq_file(). Signed-off-by: Lukas Fleischer --- web/html/pkgreq.php | 8 web/lib/credentials.inc.php | 2 ++ web/lib

[aur-dev] [PATCH 1/2] Fix the return value of save_salt()

2014-08-08 Thread Lukas Fleischer
Return true if and only if the SQL query was executed successfully. Logins with an unsalted password no longer fail now. Signed-off-by: Lukas Fleischer --- web/lib/aur.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index

[aur-dev] [PATCH 1/2] Add PCRE_DOLLAR_ENDONLY to preg_match()

2014-08-05 Thread Lukas Fleischer
registering with user names that end with a newline character. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 4 ++-- web/lib/acctfuncs.inc.php | 2 +- web/lib/pkgreqfuncs.inc.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/html/pkgsubmit.php b

[aur-dev] [PATCH 2/2] Fix notification handling on submission and adoption

2014-08-05 Thread Lukas Fleischer
Automatically add users to the notification list when adopting a package. This used to work bug was broken by 03c6304 (Rework permission handling, 2014-07-15). Fixes FS#41426. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 2 +- web/lib/pkgbasefuncs.inc.php | 2 +- 2 files

[aur-dev] AUR 3.4.3 released

2014-08-02 Thread Lukas Fleischer
Hello, I am pleased to announce that AUR 3.4.3 has been released. The official AUR setup [1] has already been updated. This release includes a bug fix to the user statistics and Trusted User interface, as well as Translation updates. For a comprehensive list of changes, please consult the Git lo

Re: [aur-dev] [PATCH] Count users in "Trusted User & Developer" group as TU

2014-08-02 Thread Lukas Fleischer
On Sat, 02 Aug 2014 at 14:18:45, Balló György wrote: > This reflects the changes in 3610f3c. > --- > web/lib/acctfuncs.inc.php | 4 ++-- > web/lib/stats.inc.php | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > Good catch. Merged, thanks!

[aur-dev] AUR 3.4.2 released

2014-07-29 Thread Lukas Fleischer
Hello, I am pleased to announce that AUR 3.4.2 has been released. The official AUR setup [1] has already been updated. This release includes several bug fixes regarding the requests interface. For a comprehensive list of changes, please consult the Git log [2]. As usual, bugs should be reported

[aur-dev] [PATCH] Lock fresh orphan requests

2014-07-29 Thread Lukas Fleischer
Trusted Users should almost always wait for two weeks before accepting an orphan request. Lock orphan requests during the first two weeks. Package bases can still be orphaned and package requests can still be closed manually during that period of time. Signed-off-by: Lukas Fleischer --- web

[aur-dev] [PATCH 2/2] Close requests before accepting

2014-07-29 Thread Lukas Fleischer
When auto-accepting a request, we need to close the package request before performing the actual action (disown/deletion/merge). Otherwise, the former maintainer is not included in the Cc list of the acceptance/rejection notification email. Signed-off-by: Lukas Fleischer --- web/lib

[aur-dev] [PATCH 1/2] Remove duplicate recipients from Cc

2014-07-29 Thread Lukas Fleischer
When a user files a request for a package maintained by himself, he is currently included in the Cc list twice. Use array_unique() to omit repeated entries. Signed-off-by: Lukas Fleischer --- web/lib/pkgreqfuncs.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/lib

[aur-dev] [PATCH] Allow users to delete their own comments

2014-07-29 Thread Lukas Fleischer
Fixes a regression introduced in 03c6304 (Rework permission handling, 2014-07-15). Fixes FS#41379. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/web/lib/pkgfuncs.inc.php b/web/lib

[aur-dev] [PATCH 3/3] Suppress PHP notice in process_account_form()

2014-07-29 Thread Lukas Fleischer
Add a check to remove a notice which is displayed after registration since commit 03c6304 (Rework permission handling, 2014-07-15). Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/lib/acctfuncs.inc.php

[aur-dev] [PATCH 2/3] Fix the registration form

2014-07-29 Thread Lukas Fleischer
Pass the right parameters to display_account_form() and process_account_form() when showing/processing the registration form. Fixes a regression introduced in 03c6304 (Rework permission handling, 2014-07-15). Reported-by: Karthik K Signed-off-by: Lukas Fleischer --- web/html/account.php | 6

[aur-dev] AUR 3.4.1 released

2014-07-29 Thread Lukas Fleischer
Hello, I am pleased to announce that AUR 3.4.1 has been released. The official AUR setup [1] has already been updated. This release includes bug fixes regarding the account registration form and translations. For a comprehensive list of changes, please consult the Git log [2]. As usual, bugs sho

[aur-dev] [PATCH 1/3] Do not show deletion link on the registration page

2014-07-29 Thread Lukas Fleischer
In 7df8dc8 (Add support for deleting user accounts, 2014-07-25), a link to the account deletion page was added to the account edit form. Make sure we only show this link if the user actually wants to edit an account and do not show this link on the account registration page. Signed-off-by: Lukas

[aur-dev] AUR 3.4.0 released

2014-07-28 Thread Lukas Fleischer
Hello, I am pleased to announce that AUR 3.4.0 has been released. The official AUR setup [1] has already been updated. This release includes several improvements to the package request feature and a couple of bug fixes. The PKGBUILD parser has been dropped, you can no longer upload source package

Re: [aur-dev] [PATCH] Make deleted comments visible to Trusted Users

2014-07-28 Thread Lukas Fleischer
On Mon, 28 Jul 2014 at 09:29:53, Alex Charron wrote: > On 2014-07-27 21:12, Xyne wrote: > > On 2014-07-27 11:29 +1200 > > David Phillips wrote: > > > >>> So maybe we should clean them up occasionally? > >> Makes sense. A TU's hardly going to receive complaints about abuse 12 > >> -- or even 6 -- mo

[aur-dev] [PATCH] Auto-generate po/POTFILES

2014-07-27 Thread Lukas Fleischer
Reduce maintenance costs by auto-generating po/POTFILES in the Makefile. Signed-off-by: Lukas Fleischer --- .gitignore | 1 + po/Makefile | 7 +-- po/POTFILES | 58 -- 3 files changed, 6 insertions(+), 60 deletions(-) delete mode

Re: [aur-dev] [aur-general] [HEADS-UP] Meta data and split package support in the AUR

2014-07-27 Thread Lukas Fleischer
On Sat, 05 Apr 2014 at 14:38:44, Lukas Fleischer wrote: > [...] > 1. We can drop the PKGBUILD parser from the AUR. The parser will still >be available in the upcoming release but it will be marked as >deprecated and a warning will be displayed whenever someone tries to >

Re: [aur-dev] [PATCH] Make deleted comments visible to Trusted Users

2014-07-26 Thread Lukas Fleischer
On Sat, 26 Jul 2014 at 15:39:13, Xyne wrote: > On 2014-07-25 19:49 +0200 > Lukas Fleischer wrote: > > >On Fri, 25 Jul 2014 at 18:42:22, Xyne wrote: > >> On 2014-07-25 11:31 +0200 > >> Lukas Fleischer wrote: > >> > >> >This allows Trus

Re: [aur-dev] [PATCH] Make deleted comments visible to Trusted Users

2014-07-25 Thread Lukas Fleischer
On Fri, 25 Jul 2014 at 18:42:22, Xyne wrote: > On 2014-07-25 11:31 +0200 > Lukas Fleischer wrote: > > >This allows Trusted Users to check whether a user posted a politically > >incorrect comment, even if he already deleted it. > > > Why keep "deleted" c

[aur-dev] [PATCH] Do not allow regular users to edit all accounts

2014-07-25 Thread Lukas Fleischer
Fixes a regression introduced in 03c6304 (Rework permission handling, 2014-07-15). Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 943e80b..6232f83 100644

[aur-dev] [PATCH 2/2] Add support for deleting user accounts

2014-07-25 Thread Lukas Fleischer
Users can now delete their own accounts by clicking a link in the account edit form and confirming the deletion on a follow-up page. Signed-off-by: Lukas Fleischer --- po/POTFILES| 1 + web/html/account.php | 16 web/html/index.php

[aur-dev] [PATCH 1/2] Clean up user references in user_delete()

2014-07-25 Thread Lukas Fleischer
Explicitly clean up all references before deleting a user. Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 35 +++ 1 file changed, 35 insertions(+) diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 73d01a5..943e80b 100644

[aur-dev] [PATCH] Make deleted comments visible to Trusted Users

2014-07-25 Thread Lukas Fleischer
This allows Trusted Users to check whether a user posted a politically incorrect comment, even if he already deleted it. Signed-off-by: Lukas Fleischer --- web/html/css/aur.css | 4 web/lib/credentials.inc.php | 2 ++ web/lib/pkgbasefuncs.inc.php | 20

[aur-dev] [PATCH] Prevent from merging a package base with itself

2014-07-23 Thread Lukas Fleischer
Instead of deleting the package, show an error message if a user tries to merge a package base with itself. Signed-off-by: Lukas Fleischer --- web/html/pkgbase.php| 11 +++ web/lib/pkgreqfuncs.inc.php | 4 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/web

[aur-dev] [PATCH] po/POTFILES: Remove pkgbuild-parser.inc.php

2014-07-23 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer --- po/POTFILES | 1 - 1 file changed, 1 deletion(-) diff --git a/po/POTFILES b/po/POTFILES index a37384e..1b4d6a6 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -27,7 +27,6 @@ lib/DB.class.php lib/feedcreator.class.php lib/gettext.php lib/pkgbasefuncs.inc.php

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