Register to Comment
Page 3 of 9 FirstFirst 12345 ... LastLast
Results 21 to 30 of 86
Like Tree81Likes
  1. #21
    publicrealm publicrealm is online now
    publicrealm's Avatar
    Join Date
    Aug 2007
    Posts
    5,415

    Quote Originally Posted by johnhan278 View Post
    # check database lock
    [[ -e "/var/lib/pacman/db.lck" ]] && Note "e" $"db.lck exists in /var/lib/pacman" && exit 1
    # set build lock
    [[ -e "$tmpdir/pacaur.build.lck" ]] && Note "e" $"pacaur.build.lck exists in $tmpdir" && exit 1
    touch "$tmpdir/pacaur.build.lck"
    # install provider packages and repo conflicting packages that makepkg --noconfirm cannot handle
    if [[ -n "${repoprovidersconflictingpkgs[@]}" ]]; then
    Note "i" $"Installing ${colorW}${repoprovidersconflictingpkgs[@]}${reset} dependencies..."
    sudo $pacmanbin -S ${repoprovidersconflictingpkgs[@]} --ask 36 --asdeps --noconfirm
    fi
    # main
    for i in "${!basepkgs[@]}"; do
    # get split packages list
    pkgsdepslist=($(awk -F "," '{for (k=1;k<=NF;k++) print $k}' <<< ${pkgsdeps[$i]}))
    cd "$clonedir/${basepkgs[$i]}" || exit 1
    # build devel if necessary only (supported protocols only)
    unset aurdevelpkgsAver
    if [[ -n "$(grep -E "\-(bzr|git|hg|svn|daily.*|nightly.*)$" <<< ${basepkgs[$i]})" ]]; then
    # retrieve updated version
    aurdevelpkgsAver=($(makepkg --packagelist | awk -F "-" '{print $(NF-2)"-"$(NF-1)}'))
    aurdevelpkgsAver=${aurdevelpkgsAver[0]}
    # check split packages update
    unset basepkgsupdate checkpkgsdepslist
    for j in "${pkgsdepslist[@]}"; do
    aurdevelpkgsQver=$(expac -Qs '%v' "^$j$" | head -1)
    if [[ -n $aurdevelpkgsQver && $(vercmp "$aurdevelpkgsQver" "$aurdevelpkgsAver") -ge 0 ]] && [[ $needed && ! $rebuild ]]; then
    Note "w" $"${colorW}$j${reset} is up-to-date -- skipping"
    continue
    else
    basepkgsupdate='true'
    checkpkgsdepslist+=($j)
    fi
    done
    if [[ $basepkgsupdate ]]; then
    pkgsdepslist=(${checkpkgsdepslist[@]})
    else
    continue
    fi
    fi
    # check package cache
    for j in "${pkgsdepslist[@]}"; do
    unset builtpkg
    [[ $aurdevelpkgsAver ]] && depsAver="$aurdevelpkgsAver" || depsAver="$(GetJson "varvar" "$json" "Version" "$j")"
    [[ $PKGDEST && ! $rebuild ]] && GetBuiltPkg "$j-$depsAver" "$PKGDEST"
    if [[ $builtpkg ]]; then
    if [[ " ${aurdepspkgs[@]} " =~ " $j " || $installpkg ]]; then
    Note "i" $"Installing ${colorW}$j${reset} cached package..."
    sudo $pacmanbin -Ud $builtpkg --ask 36 ${pacopts[@]/--quiet} --noconfirm
    [[ ! " ${aurpkgs[@]} " =~ " $j " ]] && sudo $pacmanbin -D $j --asdeps ${pacopts[@]} &>/dev/null
    else
    Note "w" $"Package ${colorW}$j${reset} already available in cache"
    fi
    pkgsdeps=($(tr ' ' '\n' <<< ${pkgsdeps[@]} | sed "s/^$j,//g;s/,$j$//g;s/,$j,/,/g;s/^$j$/#/g"))
    continue
    fi
    done
    [[ "${pkgsdeps[$i]}" = '#' ]] && continue
    # build
    Note "i" $"Building ${colorW}${pkgsdeps[$i]}${reset} package(s)..."
    # install then remove binary deps
    makeopts=(${makeopts[@]/-r/})
    if [[ ! $installpkg ]]; then
    unset isaurdeps
    for j in "${pkgsdepslist[@]}"; do
    [[ " ${aurdepspkgs[@]} " =~ " $j " ]] && isaurdeps=true
    done
    [[ $isaurdeps != true ]] && makeopts+=("-r")
    fi
    if [[ $silent = true ]]; then
    makepkg -sefc ${makeopts[@]} --noconfirm &>/dev/null
    else
    makepkg -sefc ${makeopts[@]} --noconfirm
    fi
    # error check
    if (($? > 0)); then
    errmakepkg+=(${pkgsdeps[$i]})
    continue # skip install
    fi
    # retrieve filename
    unset builtpkgs builtdepspkgs
    for j in "${pkgsdepslist[@]}"; do
    unset builtpkg
    [[ $aurdevelpkgsAver ]] && depsAver="$aurdevelpkgsAver" || depsAver="$(GetJson "varvar" "$json" "Version" "$j")"
    if [[ $PKGDEST ]]; then
    GetBuiltPkg "$j-$depsAver" "$PKGDEST"
    else
    GetBuiltPkg "$j-$depsAver" "$clonedir/${basepkgs[$i]}"
    fi
    [[ " ${aurdepspkgs[@]} " =~ " $j " ]] && builtdepspkgs+=($builtpkg) || builtpkgs+=($builtpkg)
    done
    # install
    if [[ $installpkg || -z "${builtpkgs[@]}" ]]; then
    Note "i" $"Installing ${colorW}${pkgsdeps[$i]}${reset} package(s)..."
    # inform about missing name suffix and metadata mismatch
    if [[ -z "${builtdepspkgs[@]}" && -z "${builtpkgs[@]}" ]]; then
    Note "f" $"${colorW}${pkgsdeps[$i]}${reset} package(s) failed to install."
    Note "f" $"ensure package version does not mismatch between .SRCINFO and PKGBUILD"
    Note "f" $"ensure package name has a VCS suffix if this is a devel package"
    errinstall+=(${pkgsdeps[$i]})
    else
    sudo $pacmanbin -Ud ${builtdepspkgs[@]} ${builtpkgs[@]} --ask 36 ${pacopts[@]/--quiet} --noconfirm
    fi
    fi
    # set dep status
    if [[ $installpkg ]]; then
    for j in "${pkgsdepslist[@]}"; do
    [[ ! " ${aurpkgs[@]} " =~ " $j " ]] && sudo $pacmanbin -D $j --asdeps &>/dev/null
    [[ " ${pacopts[@]} " =~ --(asdep|asdeps) ]] && sudo $pacmanbin -D $j --asdeps &>/dev/null
    [[ " ${pacopts[@]} " =~ --(asexp|asexplicit) ]] && sudo $pacmanbin -D $j --asexplicit &>/dev/null
    done
    fi
    done
    Beat me to it.
    Sign in or Register Now to reply

  2. #22
    Norman Bates Norman Bates is offline
    Norman Bates's Avatar
    Join Date
    Jan 2011
    Posts
    16,553
    Twitter
    @

    Quote Originally Posted by publicrealm View Post
    Beat me to it.
    Think he has some virus .... must be the flu ...
    Sign in or Register Now to reply

  3. #23
    The Herren The Herren is offline
    The Herren's Avatar
    Join Date
    Nov 2011
    Posts
    4,852

    Quote Originally Posted by Norman Bates View Post
    Think he has some virus .... must be the flu ...

    More likely a childish exhibition of "look at me"....
    Sign in or Register Now to reply

  4. #24
    Sign in or Register Now to reply

  5. #25
    FunkyBoogaloo FunkyBoogaloo is offline
    FunkyBoogaloo's Avatar
    Join Date
    Jul 2015
    Posts
    2,479

    Quote Originally Posted by Bilbo Baggins
    "I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve.
    Sign in or Register Now to reply

  6. #26
    FunkyBoogaloo FunkyBoogaloo is offline
    FunkyBoogaloo's Avatar
    Join Date
    Jul 2015
    Posts
    2,479

    Quote Originally Posted by johnhan278 View Post
    [Gobbledegook]
    Man-flu?
    Sign in or Register Now to reply

  7. #27
    Clanrickard Clanrickard is offline
    Clanrickard's Avatar
    Join Date
    Apr 2008
    Posts
    40,250

    The silent photos thread is great.
    Sign in or Register Now to reply

  8. #28
    valamhic valamhic is offline

    Join Date
    Jan 2011
    Posts
    13,664

    It has to be Dessie Quarrelsome calling me a Snowflake, if that fails to win, then the post by Owdetojoy that the climate is due to get hot is next.
    Sign in or Register Now to reply

  9. #29
    eoghanacht eoghanacht is offline
    eoghanacht's Avatar
    Join Date
    Apr 2006
    Posts
    38,473

    Aung San Suu Kyi oversees mass rape and murder in Myanmar

    Post #244

    For the most cowardly bottom feeder post of the year.

    The OP makes light of dead Muslim babies and children floating in a river.

    He's a classy guy.
    Sign in or Register Now to reply

  10. #30
    ellie08 ellie08 is offline

    Join Date
    Nov 2008
    Posts
    14,035

    Quote Originally Posted by Clanrickard View Post
    The silent photos thread is great.
    +1
    Sign in or Register Now to reply

Page 3 of 9 FirstFirst 12345 ... LastLast
Sign in to CommentRegister to Comment