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

2011-03-24 Thread Dan McGee
On Thu, Mar 24, 2011 at 5:05 PM, Ray Kohler wrote: > Move checksum and pgpsig calcluation before changing into the > tmpdir, otherwise we can't find the files if a relative path > was used. Thanks! I made a few small touchups to the local var declaration to ensure sha256sum and pgpsig made it int

[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 --- scripts/repo-add.sh.in | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/scripts/re

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

2011-03-24 Thread Dan McGee
On Thu, Mar 24, 2011 at 4:46 PM, Ray Kohler wrote: > I first noticed that checksums weren't calculated if a relative path was used, > since they're done after moving into the $tmpdir and relative paths become > useless. Then I saw that PGP sigs had basically the same problem, with the > addition o

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

2011-03-24 Thread Ray Kohler
I first noticed that checksums weren't calculated if a relative path was used, since they're done after moving into the $tmpdir and relative paths become useless. Then I saw that PGP sigs had basically the same problem, with the addition of the introduction of $startdir, which was never set beforeh