Skip to content

Add CLI flag to show repo mirror address #855

@nebulosa2007

Description

@nebulosa2007
$ pikaur -Vq
Pikaur v1.30.3
Pacman v7.0.0 - libalpm v15.0.0 - pyalpm v0.10.6

Description:

Is it possible to show mirror address while updating bases?

I made a bash alias for myself, it works for years without an issue:

getnews () { echo; echo -ne '\033[0;34m:: \033[0m\033[1mMirror: '; grep -m1 Server /etc/pacman.d/mirrorlist | cut  -d'/' -f3; echo -e '\033[0m'; pikaur -Syu --noedit; }

And it looks like:

$ getnews
:: Mirror: mirror.hugo-betrugo.de

:: Synchronising package databases...
 core is up to date
 extra is up to date
 archrepo is up to date
....

Mirror updates once a day through reflector.

Could you add showing mirror server with -m option?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions