Advertisement
X-dark

pacget_pacman-3.5.patch

Mar 25th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.69 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement