[pacman-dev] [PATCH] Only try to create keyring directory when root

2011-03-28 Thread Ray Kohler
If we try and fail to create it, the -e flag to bash will make --help and --version break. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/pacman-key.sh.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in

[pacman-dev] [PATCH] Create pacman keyring directory if missing

2011-03-27 Thread Ray Kohler
to use the read-only operations (--list, --export, --finger)? Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/pacman-key.sh.in |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 5746e64..89e52fc 100644

[pacman-dev] [PATCH] Clean up repo-add usage message

2011-03-27 Thread Ray Kohler
This now includes -s and -v, tailors itself to the current command, and is formatted more like that of other pacman commands. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- I don't know why it was base64'd - I guess Gmail did that, since I sent that one by pasting the content there? Thanks

Re: [pacman-dev] [PATCH 2/2] Add manpage for pkgdelta

2011-03-27 Thread Ray Kohler
On Sun, Mar 27, 2011 at 10:23 PM, Dan McGee dpmc...@gmail.com wrote: On Fri, Mar 25, 2011 at 7:26 PM, Ray Kohler ataraxia...@gmail.com wrote: +'pkgdelta' is used to create package delta files between two versions of the same package. These files are essentially binary patches. linkman:pacman

Re: [pacman-dev] [PATCH] Create pacman keyring directory if missing

2011-03-27 Thread Ray Kohler
On Sun, Mar 27, 2011 at 10:32 PM, Dan McGee dpmc...@gmail.com wrote: On Sun, Mar 27, 2011 at 11:14 AM, Ray Kohler ataraxia...@gmail.com wrote: Use mode 755, so non-root users can see inside. Add --no-permission-warning to GPG_PACMAN to suppress the noise that otherwise comes of not using mode

Re: [pacman-dev] [PATCH] Create pacman keyring directory if missing

2011-03-27 Thread Ray Kohler
On Sun, Mar 27, 2011 at 10:43 PM, Ray Kohler ataraxia...@gmail.com wrote: On Sun, Mar 27, 2011 at 10:32 PM, Dan McGee dpmc...@gmail.com wrote: On Sun, Mar 27, 2011 at 11:14 AM, Ray Kohler ataraxia...@gmail.com wrote: Use mode 755, so non-root users can see inside. Add --no-permission-warning

Re: [pacman-dev] [PATCH] Renamed --trust to --edit-key

2011-03-26 Thread Ray Kohler
On Sat, Mar 26, 2011 at 6:37 AM, Richard Alex Hofer atomic.qu...@gmail.com wrote: Hi, I'm very new here, but hope this saves someone a minute or two.  Fixes the first thing on the TODO list TODO: rename the --trust option to --edit-key.  Tried sending this before, but I think I messed something

[pacman-dev] [PATCH] Add -s --sign and -v --verify to repo-add usage message.

2011-03-25 Thread Ray Kohler
There were not added to the end of the list as that would mean splitting the single gettext string that contains -f and the see the man page message, and I wanted to do as little string damage as possible. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/repo-add.sh.in |5 + 1

Re: [pacman-dev] [PATCH] Add -s --sign and -v --verify to repo-add usage message.

2011-03-25 Thread Ray Kohler
On Fri, Mar 25, 2011 at 6:45 PM, Dan McGee dpmc...@gmail.com wrote: On Fri, Mar 25, 2011 at 5:38 PM, Allan McRae al...@archlinux.org wrote: On 26/03/11 08:16, Dan McGee wrote: On Fri, Mar 25, 2011 at 5:14 PM, Ray Kohlerataraxia...@gmail.com  wrote: There were not added to the end of the list

Re: [pacman-dev] [PATCH] Add -s --sign and -v --verify to repo-add usage message.

2011-03-25 Thread Ray Kohler
On Fri, Mar 25, 2011 at 6:54 PM, Ray Kohler ataraxia...@gmail.com wrote: On Fri, Mar 25, 2011 at 6:45 PM, Dan McGee dpmc...@gmail.com wrote: On Fri, Mar 25, 2011 at 5:38 PM, Allan McRae al...@archlinux.org wrote: On 26/03/11 08:16, Dan McGee wrote: On Fri, Mar 25, 2011 at 5:14 PM, Ray

[pacman-dev] [PATCH] Sign database even if empty

2011-03-25 Thread Ray Kohler
Move the create_signature() call outside the case of non-empty databases, so it will be called regardless. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/repo-add.sh.in |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/scripts/repo-add.sh.in b/scripts/repo

Re: [pacman-dev] [PATCH] Add -s --sign and -v --verify to repo-add usage message.

2011-03-25 Thread Ray Kohler
On Fri, Mar 25, 2011 at 7:26 PM, Dan McGee dpmc...@gmail.com wrote: On Fri, Mar 25, 2011 at 6:16 PM, Ray Kohler ataraxia...@gmail.com wrote: On Fri, Mar 25, 2011 at 6:54 PM, Ray Kohler ataraxia...@gmail.com wrote: On Fri, Mar 25, 2011 at 6:45 PM, Dan McGee dpmc...@gmail.com wrote: On Fri, Mar

[pacman-dev] [PATCH 1/2] Update repo-add manpage

2011-03-25 Thread Ray Kohler
Add -v, mention delta support (other than -d), and split repo-add-specific options out from those common to repo-add and repo-remove. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- doc/repo-add.8.txt | 46 +++--- 1 files changed, 27 insertions

[pacman-dev] [PATCH 2/2] Add manpage for pkgdelta

2011-03-25 Thread Ray Kohler
Signed-off-by: Ray Kohler ataraxia...@gmail.com --- doc/.gitignore |1 + doc/Makefile.am|4 doc/pkgdelta.8.txt | 37 + 3 files changed, 42 insertions(+), 0 deletions(-) create mode 100644 doc/pkgdelta.8.txt diff --git a/doc/.gitignore b

[pacman-dev] pacman-key imports and key trust levels

2011-03-25 Thread Ray Kohler
So, after a couple of days of messing around (and fixing random things here and there), I was able to go end-to-end, verifying a signed repo DB, and then installing a signed package from that repo. Very nice! I ended up testing out the failure case on verifying signatures a bit more than I

Re: [pacman-dev] pacman-key imports and key trust levels

2011-03-25 Thread Ray Kohler
On Fri, Mar 25, 2011 at 11:40 PM, Ray Kohler ataraxia...@gmail.com wrote: While I'm talking about signing stuff - I noticed an open question on what to do with the downloaded DB if sig verification fails. I suggest it be deleted, and the sig be deleted also. These are generally small files

[pacman-dev] [PATCH] Fix use of relative paths for packages in repo-add

2011-03-24 Thread Ray Kohler
beforehand (cut-n-paste from makepkg?). Seeing that having this value known would solve both problems, I just defined it and used it for the checksums as well. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/repo-add.sh.in | 11 +++ 1 files changed, 7 insertions(+), 4 deletions

[pacman-dev] [PATCH] Fix use of relative paths for packages in repo-add

2011-03-24 Thread Ray Kohler
Move checksum and pgpsig calcluation before changing into the tmpdir, otherwise we can't find the files if a relative path was used. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/repo-add.sh.in | 26 ++ 1 files changed, 14 insertions(+), 12 deletions

[pacman-dev] [PATCH] Create pacman keyring directory if missing

2011-03-24 Thread Ray Kohler
Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/pacman-key.sh.in |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 5746e64..ccc7f92 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman

[pacman-dev] [PATCH] Add -T, --deptest to usage message

2011-03-24 Thread Ray Kohler
Fixes FS #23369 Signed-off-by: Ray Kohler ataraxia...@gmail.com --- src/pacman/pacman.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 0487ee8..d10cefe 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -123,6

Re: [pacman-dev] [PATCH] Create pacman keyring directory if missing

2011-03-24 Thread Ray Kohler
On Thu, Mar 24, 2011 at 9:49 PM, Allan McRae al...@archlinux.org wrote: On 25/03/11 11:32, Dan McGee wrote: On Thu, Mar 24, 2011 at 8:00 PM, Denis A. Altoé Falqueto denisfalqu...@gmail.com  wrote: On Thu, Mar 24, 2011 at 8:05 PM, Ray Kohlerataraxia...@gmail.com  wrote: Signed-off-by: Ray

[pacman-dev] [PATCH] Add -T, --deptest to usage message

2011-03-24 Thread Ray Kohler
Fixes FS #23369 Signed-off-by: Ray Kohler ataraxia...@gmail.com --- src/pacman/pacman.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 0487ee8..da6b71e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c

Re: [pacman-dev] Pacman-3.5.0 bug round-up

2011-03-20 Thread Ray Kohler
On Sun, Mar 20, 2011 at 4:08 AM, Allan McRae al...@archlinux.org wrote: Here is a list I made to help keep track of the status of issues in the 3.5.0 release that I thought may be on use to others Fixed: (No FS#) - reading from stdin and piping yes  - Fix in git FS#23307 - [makepkg]

Re: [pacman-dev] Pacman-3.5.0 bug round-up

2011-03-20 Thread Ray Kohler
On Sun, Mar 20, 2011 at 12:56 PM, Dan McGee dpmc...@gmail.com wrote: On Sun, Mar 20, 2011 at 11:01 AM, Ray Kohler ataraxia...@gmail.com wrote: On Sun, Mar 20, 2011 at 4:08 AM, Allan McRae al...@archlinux.org wrote: Here is a list I made to help keep track of the status of issues in the 3.5.0

[pacman-dev] change to option handling for --debug and -v

2011-03-19 Thread Ray Kohler
I noticed a change in the way 3.5 processes some of its command-line flags: It used to be that --debug and -v were handled immediately, such that their initial output appeared before pacman complained of a usage error. Now, it errors out immediately. This may seem like an unimportant case, but it

Re: [pacman-dev] change to option handling for --debug and -v

2011-03-19 Thread Ray Kohler
On Sat, Mar 19, 2011 at 1:21 PM, Dave Reisner d...@falconindy.com wrote: On Sat, Mar 19, 2011 at 12:10:58PM -0400, Ray Kohler wrote: I noticed a change in the way 3.5 processes some of its command-line flags: It used to be that --debug and -v were handled immediately, such that their initial

Re: [pacman-dev] [PATCH] makepkg: fall back to su if sudo is not available

2010-03-01 Thread Ray Kohler
On Thu, Feb 25, 2010 at 10:15 PM, Ray Kohler ataraxia...@gmail.com wrote: On Thu, Feb 25, 2010 at 9:52 PM, Jim Pryor lists+pacman-...@jimpryor.net wrote: On Thu, Feb 25, 2010 at 09:05:11PM -0500, Ray Kohler wrote: On Thu, Feb 25, 2010 at 7:25 PM, Allan McRae al...@archlinux.org wrote: does

Re: [pacman-dev] [PATCH] bash_completion: remove absolute utility paths again

2010-02-25 Thread Ray Kohler
On Thu, Feb 25, 2010 at 6:03 PM, Aaron Griffin aaronmgrif...@gmail.com wrote: On Thu, Feb 25, 2010 at 4:56 PM, Cedric Staniewski ced...@gmx.ca wrote: On 25.02.2010 23:43, Aaron Griffin wrote: On Thu, Feb 25, 2010 at 4:23 PM, Cedric Staniewski ced...@gmx.ca wrote: The location of the used

Re: [pacman-dev] [PATCH] makepkg: fall back to su if sudo is not available

2010-02-25 Thread Ray Kohler
On Thu, Feb 25, 2010 at 7:25 PM, Allan McRae al...@archlinux.org wrote: On 21/02/10 12:20, Ray Kohler wrote: There's a bit of a hack here with the fullcmd temporary variable to get around the need to pass the entire command line to su -c as one argument. Signed-off-by: Ray Kohlerataraxia

Re: [pacman-dev] [PATCH] makepkg: fall back to su if sudo is not available

2010-02-25 Thread Ray Kohler
On Thu, Feb 25, 2010 at 9:52 PM, Jim Pryor lists+pacman-...@jimpryor.net wrote: On Thu, Feb 25, 2010 at 09:05:11PM -0500, Ray Kohler wrote: On Thu, Feb 25, 2010 at 7:25 PM, Allan McRae al...@archlinux.org wrote: does: su -c $PACMAN $PACMAN_OPTS $@ not work? No, that somehow gets parsed

[pacman-dev] [PATCH] makepkg: fall back to su if sudo is not available

2010-02-20 Thread Ray Kohler
There's a bit of a hack here with the fullcmd temporary variable to get around the need to pass the entire command line to su -c as one argument. Signed-off-by: Ray Kohler ataraxia...@gmail.com --- scripts/makepkg.sh.in | 19 +++ 1 files changed, 7 insertions(+), 12 deletions