Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

pacget_pacman-3.5.patch

By: X-dark on Mar 25th, 2011  |  syntax: Diff  |  size: 0.69 KB  |  hits: 121  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- /tmp/packerbuild-1108/pacget/pacget/src/pacget      2010-09-03 15:54:04.000000000 +0200
  2. +++ /usr/bin/pacget     2011-03-25 10:57:38.362821268 +0100
  3. @@ -34,7 +34,7 @@
  4.  # For db files, or when using a custom repo (which most likely doesn't have any mirror),
  5.  # use only the URL passed by pacman; Otherwise, extract the list of servers (from the include file of the repo) to download from
  6.  url=$1
  7. -if ! [[ $filename = *.db.tar.gz || $repo = "custom" ]]; then
  8. +if ! [[ $filename = *.db || $repo = "custom" ]]; then
  9.    mirrorlist=$(awk -F' *= *' '$0~"^\\["r"\\]",/Include *= */{l=$2} END{print l}' r=$repo /etc/pacman.conf)
  10.    if [ -n mirrorlist ]; then
  11.      num_conn=$(grep ^split $CONF | cut -d'=' -f2)