Pamac

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Backend / Core
  • Assigned To No-one
  • Operating System Manjaro
  • Severity Low
  • Priority Very Low
  • Reported Version 4.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Pamac
Opened by Julian - 23.05.2017

FS#196 - pacman-mirrors doesnt accept incremental value for -t (--timeout) + includes non-responding mirrors

Hi dear Manajaro Developers,

i want to generate a https mirror list,
wich have a ping ⇐0.3 Seconds.

pacman-mirrors -v
pacman-mirrors 4.1.4

uname -a

Linux 4.11.1-1-MANJARO #1 SMP PREEMPT Sun May 14 18:49:23 UTC 2017 x86_64 GNU/Linux

cat /etc/lsb-release

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=17.0.1
DISTRIB_CODENAME=Gellivara
DISTRIB_DESCRIPTION="Manjaro Linux"

I did it with the command

pacman-mirrors -g -c all -t 0.3 -a –proto https

pacman-mirrors: error: argument -t/--timeout: invalid int value: '0.3'

In my opinion, the option -t have to be declared and handled as float,
because many of the mirrors respond faster than 1 second.

I have tried to patch the file with the float value declaration of the timeout option

/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py

parser.add_argument("-t", "--timeout",
                            type=float,
                            metavar=txt.SECONDS,
                            help=txt.HLP_ARG_TIMEOUT)

this works halfway

the output shows, that the not responding mirrors
also get included in the mirrorlist,
this behaviour is also present without the float declaration patch

pacman-mirrors -g -c all -t 0.3 -a –proto https

.: Info Downloading mirrors from repo.manjaro.org
.: Info Using default mirror file
.: Info Querying mirrors - This may take some time
   0.146 Belgium        : https://manjaro.cu.be/
   0.243 Bulgaria       : https://mirrors.netix.net/manjaro/
   0.213 Bulgaria       : https://manjaro.ipacct.com/manjaro/
   0.471 Canada         : https://ca.mirror.babylon.network/manjaro/
   ..... China          : https://mirrors.ustc.edu.cn/manjaro/
.: Error _ssl.c:733: The handshake operation timed out 'https://mirrors.ustc.edu.cn/manjaro/'

   ..... China          : https://mirrors.zju.edu.cn/manjaro/
.: Error _ssl.c:733: The handshake operation timed out 'https://mirrors.zju.edu.cn/manjaro/'

   ..... Costa_Rica     : https://mirrors.ucr.ac.cr/manjaro/
   0.191 Czech          : https://mirror.dkm.cz/manjaro/
   0.185 Denmark        : https://mirrors.dotsrc.org/manjaro/
   ..... Denmark        : https://www.uex.dk/repos/manjaro/
.: Error _ssl.c:733: The handshake operation timed out 'https://www.uex.dk/repos/manjaro/'

   ..... Ecuador        : https://mirror.cedia.org.ec/manjaro/
   ..... Ecuador        : https://mirror.uta.edu.ec/manjaro/
   ..... Ecuador        : https://mirror.espoch.edu.ec/manjaro/
   0.141 France         : https://fr.mirror.babylon.network/manjaro/
   0.109 Germany        : https://ftp.halifax.rwth-aachen.de/manjaro/
   0.158 Germany        : https://mirror.netzspielplatz.de/manjaro/packages/
   0.098 Germany        : https://mirror.netcologne.de/manjaro/
   0.103 Germany        : https://repo.rhindon.net/manjaro/
   0.106 Germany        : https://repo.stdout.net/manjaro/
   0.126 Germany        : https://mirror.alpix.eu/manjaro/
   0.115 Germany        : https://manjaro-mirror-a.alpix.eu/
   0.339 Ireland        : https://ftp.heanet.ie/mirrors/manjaro/
   0.222 Italy          : https://manjaro.mirror.garr.it/mirrors/manjaro/
   0.224 Italy          : https://ba.mirror.garr.it/mirrors/manjaro/
   0.227 Italy          : https://ct.mirror.garr.it/mirrors/manjaro/
   0.105 Netherlands    : https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/
   0.112 Netherlands    : https://nl.mirror.babylon.network/manjaro/
   ..... Russia         : https://mirror.yandex.ru/mirrors/manjaro/
.: Error _ssl.c:733: The handshake operation timed out 'https://mirror.yandex.ru/mirrors/manjaro/'

   ..... Singapore      : https://download.nus.edu.sg/mirror/manjaro/
   0.169 Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
   0.211 Sweden         : https://mirror.zetup.net/manjaro/
   0.144 United_Kingdom : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/
   0.417 United_States  : https://mirror.clarkson.edu/manjaro/
   ..... United_States  : https://mirrors.ocf.berkeley.edu/manjaro/
   ..... Vietnam        : https://mirror.freedif.org/Manjaro/
.: Info Writing mirror list
   Germany         : https://mirror.netcologne.de/manjaro/stable
   Germany         : https://repo.rhindon.net/manjaro/stable
   Netherlands     : https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable
   Germany         : https://repo.stdout.net/manjaro/stable
   Germany         : https://ftp.halifax.rwth-aachen.de/manjaro/stable
   Netherlands     : https://nl.mirror.babylon.network/manjaro/stable
   Germany         : https://manjaro-mirror-a.alpix.eu/stable
   Germany         : https://mirror.alpix.eu/manjaro/stable
   France          : https://fr.mirror.babylon.network/manjaro/stable
   United_Kingdom  : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable
   Belgium         : https://manjaro.cu.be/stable
   Germany         : https://mirror.netzspielplatz.de/manjaro/packages/stable
   Sweden          : https://ftp.lysator.liu.se/pub/manjaro/stable
   Denmark         : https://mirrors.dotsrc.org/manjaro/stable
   Czech           : https://mirror.dkm.cz/manjaro/stable
   Sweden          : https://mirror.zetup.net/manjaro/stable
   Bulgaria        : https://manjaro.ipacct.com/manjaro/stable
   Italy           : https://manjaro.mirror.garr.it/mirrors/manjaro/stable
   Italy           : https://ba.mirror.garr.it/mirrors/manjaro/stable
   Italy           : https://ct.mirror.garr.it/mirrors/manjaro/stable
   Bulgaria        : https://mirrors.netix.net/manjaro/stable
   Ireland         : https://ftp.heanet.ie/mirrors/manjaro/stable
   United_States   : https://mirror.clarkson.edu/manjaro/stable
   Canada          : https://ca.mirror.babylon.network/manjaro/stable
   United_States   : https://mirrors.ocf.berkeley.edu/manjaro/stable
   Costa_Rica      : https://mirrors.ucr.ac.cr/manjaro/stable
   Ecuador         : https://mirror.espoch.edu.ec/manjaro/stable
   Ecuador         : https://mirror.uta.edu.ec/manjaro/stable
   Vietnam         : https://mirror.freedif.org/Manjaro/stable
   Ecuador         : https://mirror.cedia.org.ec/manjaro/stable
   Singapore       : https://download.nus.edu.sg/mirror/manjaro/stable
   China           : https://mirrors.ustc.edu.cn/manjaro/stable
   China           : https://mirrors.zju.edu.cn/manjaro/stable
   Denmark         : https://www.uex.dk/repos/manjaro/stable
   Russia          : https://mirror.yandex.ru/mirrors/manjaro/stable
.: Info Mirrorlist generated and saved to: /etc/pacman.d/mirrorlist

/etc/pacman.d/mirrorlist

##
## Manjaro Linux mirrorlist
## Generated on 2017-05-23 09:34
##
## Use pacman-mirrors to modify
##

## Country : Germany
Server = https://mirror.netcologne.de/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://repo.rhindon.net/manjaro/stable/$repo/$arch

## Country : Netherlands
Server = https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://repo.stdout.net/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch

## Country : Netherlands
Server = https://nl.mirror.babylon.network/manjaro/stable/$repo/$arch

## Country : Germany
Server = https://manjaro-mirror-a.alpix.eu/stable/$repo/$arch

## Country : Germany
Server = https://mirror.alpix.eu/manjaro/stable/$repo/$arch

## Country : France
Server = https://fr.mirror.babylon.network/manjaro/stable/$repo/$arch

## Country : United_Kingdom
Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch

## Country : Belgium
Server = https://manjaro.cu.be/stable/$repo/$arch

## Country : Germany
Server = https://mirror.netzspielplatz.de/manjaro/packages/stable/$repo/$arch

## Country : Sweden
Server = https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch

## Country : Denmark
Server = https://mirrors.dotsrc.org/manjaro/stable/$repo/$arch

## Country : Czech
Server = https://mirror.dkm.cz/manjaro/stable/$repo/$arch

## Country : Sweden
Server = https://mirror.zetup.net/manjaro/stable/$repo/$arch

## Country : Bulgaria
Server = https://manjaro.ipacct.com/manjaro/stable/$repo/$arch

## Country : Italy
Server = https://manjaro.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch

## Country : Italy
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch

## Country : Italy
Server = https://ct.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch

## Country : Bulgaria
Server = https://mirrors.netix.net/manjaro/stable/$repo/$arch

## Country : Ireland
Server = https://ftp.heanet.ie/mirrors/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mirror.clarkson.edu/manjaro/stable/$repo/$arch

## Country : Canada
Server = https://ca.mirror.babylon.network/manjaro/stable/$repo/$arch

## Country : United_States
Server = https://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch

## Country : Costa_Rica
Server = https://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch

## Country : Ecuador
Server = https://mirror.espoch.edu.ec/manjaro/stable/$repo/$arch

## Country : Ecuador
Server = https://mirror.uta.edu.ec/manjaro/stable/$repo/$arch

## Country : Vietnam
Server = https://mirror.freedif.org/Manjaro/stable/$repo/$arch

## Country : Ecuador
Server = https://mirror.cedia.org.ec/manjaro/stable/$repo/$arch

## Country : Singapore
Server = https://download.nus.edu.sg/mirror/manjaro/stable/$repo/$arch

## Country : China
Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch

## Country : China
Server = https://mirrors.zju.edu.cn/manjaro/stable/$repo/$arch

## Country : Denmark
Server = https://www.uex.dk/repos/manjaro/stable/$repo/$arch

## Country : Russia
Server = https://mirror.yandex.ru/mirrors/manjaro/stable/$repo/$arch

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing