[pacman-dev] [PATCH] libalpm: prevent 301 redirect loop from hanging the process

2019-02-06 Thread Mark Ulrich
If a mirror responds with a 301 redirect to itself, it will create an infinite redirect loop. This will cause pacman to hang, unresponsive to even a SIGINT. The result is pacman being unable to sync or download any package from a particular repo if its current mirror is stuck in a redirect loop. Se

Re: [pacman-dev] [PATCH] libalpm: prevent 301 redirect loop from hanging the process

2019-02-06 Thread Dave Reisner
On Wed, Feb 06, 2019 at 05:22:46AM -0600, Mark Ulrich wrote: > If a mirror responds with a 301 redirect to itself, it will create an > infinite redirect loop. This will cause pacman to hang, unresponsive to > even a SIGINT. The result is pacman being unable to sync or > download any package from a

Re: [pacman-dev] [PATCH] libalpm: prevent 301 redirect loop from hanging the process

2019-02-06 Thread Mark Ulrich
> But what if you have a mirror which legitimately has 2 hops? I could see > someone trying to run something like: > > pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/ > > This is guaranteed 1 redirect already, what if the mirror that it > redirects to has a legitimate

[pacman-dev] [PATCHv2] libalpm: prevent 301 redirect loop from hanging the process

2019-02-06 Thread Mark Ulrich
If a mirror responds with a 301 redirect to itself, it will create an infinite redirect loop. This will cause pacman to hang, unresponsive to even a SIGINT. The result is pacman being unable to sync or download any package from a particular repo if its current mirror is stuck in a redirect loop. Se

[pacman-dev] [GIT] The official pacman repository branch, master, updated. v5.1.1-132-gdb102c67

2019-02-06 Thread Allan McRae
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "The official pacman repository". The branch, master has been updated via db102c67efe9cfd4367a9110c8f97ceff5afcbe3 (commit) vi

Re: [pacman-dev] [PATCHv2] libalpm: prevent 301 redirect loop from hanging the process

2019-02-06 Thread Allan McRae
On 7/2/19 12:36 am, Mark Ulrich wrote: > If a mirror responds with a 301 redirect to itself, it will create an > infinite redirect loop. This will cause pacman to hang, unresponsive to > even a SIGINT. The result is pacman being unable to sync or > download any package from a particular repo if its

Re: [pacman-dev] [PATCH 2/2] wip: pacman: rework the UI of -F

2019-02-06 Thread Allan McRae
On 3/2/19 4:42 am, morganamilo wrote: > Reworks the UI of -F according to FS#47949 > > In short -F replaces both -Fs and -Fo. > --regex/-x has been replaced with --search/-s. > > Signed-off-by: morganamilo > --- > > This patch is WIP. Functional changes made, > documentation still needs to be c

Re: [pacman-dev] [PATCH 2/2] wip: pacman: rework the UI of -F

2019-02-06 Thread Morgan Adamiec
On Thu, 7 Feb 2019 at 01:31, Allan McRae wrote: > > On 3/2/19 4:42 am, morganamilo wrote: > > Reworks the UI of -F according to FS#47949 > > > > In short -F replaces both -Fs and -Fo. > > --regex/-x has been replaced with --search/-s. > > > > Signed-off-by: morganamilo > > --- > > > > This patch

Re: [pacman-dev] [PATCH 2/2] wip: pacman: rework the UI of -F

2019-02-06 Thread Eli Schwartz
On 2/6/19 9:22 PM, Morgan Adamiec wrote: > On Thu, 7 Feb 2019 at 01:31, Allan McRae wrote: >> >> On 3/2/19 4:42 am, morganamilo wrote: >>> Reworks the UI of -F according to FS#47949 >>> >>> In short -F replaces both -Fs and -Fo. >>> --regex/-x has been replaced with --search/-s. >>> >>> Signed-off