This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

patch for packer

By: a guest on Mar 22nd, 2011  |  syntax: Bash  |  size: 0.88 KB  |  views: 149  |  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. --- /usr/bin/packer     2011-03-22 20:00:00.000000000 +0100
  2. +++ packer      2011-03-22 19:59:33.000000000 +0100
  3. @@ -504,6 +504,7 @@
  4.    IFS=$'\n'
  5.    packages=( $($pacman -Qm) )
  6.    newpackages=()
  7. +  notfoundpackages=()
  8.    checkignores=()
  9.    total="${#packages[@]}"
  10.    grep -q '^ *ILoveCandy' "$pacmanconf" && bartype='candy' || bartype='normal'
  11. @@ -552,6 +553,8 @@
  12.          checkignores+=("${packages[i]}")
  13.        elif aurversionisnewer "$pkg" "$ver"; then
  14.          newpackages+=("$pkg")
  15. +      elif ! existsinaur "$pkg"; then
  16. +        notfoundpackages+=("$pkg")
  17.      fi
  18.      done
  19.    fi
  20. @@ -566,6 +569,11 @@
  21.      fi
  22.    done
  23.  
  24. +  # Print packages not found in aur
  25. +  for package in "${notfoundpackages[@]}"; do
  26. +    echo -e "${COLOR6}warning:${ENDCOLOR} $package does not exist on aur."
  27. +  done
  28. +
  29.    # Now for the installation part
  30.    if [[ $newpackages ]]; then
  31.      auronly='1'
clone this paste RAW Paste Data