Changeset 1629 in ProjectBuilder for devel


Ignore:
Timestamp:
Jun 5, 2012, 4:09:50 AM (12 years ago)
Author:
Bruno Cornec
Message:

r4911@localhost: bruno | 2012-06-05 02:56:19 +0200

  • Skip env var passed with sudo in analysis of cmds to allow in sudoers to avoid env to be there
Location:
devel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r1620 r1629  
    226226
    227227# Command to update the distribution to latest state
    228 osupd du = sudo /usr/bin/apt-get update; sudo env DEBIAN_FRONTEND="noninteractive" /usr/bin/apt-get --quiet -y --force-yes dist-upgrade
     228osupd du = sudo /usr/bin/apt-get update; sudo /usr/bin/env DEBIAN_FRONTEND="noninteractive" /usr/bin/apt-get --quiet -y --force-yes dist-upgrade
    229229osupd gen = sudo /usr/bin/emerge --update --deep world; sudo /usr/bin/revdep-rebuild
    230230osupd rpm = sudo /usr/bin/yum clean all; sudo /usr/bin/yum -y update
     
    237237# Chaining the commands allow to only test for what is able to be installed,
    238238# not the update of the repo which may well be unaccessible if too old
    239 osins du = sudo /usr/bin/apt-get update ; sudo env DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get -y --allow-unauthenticated install
     239osins du = sudo /usr/bin/apt-get update ; sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get -y --allow-unauthenticated install
    240240osins gen = sudo /usr/bin/emerge
    241241osins rpm = sudo /usr/bin/yum clean all; sudo /usr/bin/yum -y update ; sudo /usr/bin/yum -y install
  • devel/pb/bin/pb

    r1628 r1629  
    43104310    # remove sudo and leading spaces
    43114311    $c =~ s/^\s*sudo\s+//;
     4312    # skip potential env var setup
     4313    $c =~ s/^\s*[\S]*env\s+\S+=\S+\s+//;
    43124314    # keep only the command, not the params
    43134315    $c =~ s/([^\s]+)\s.*$/$1/;
Note: See TracChangeset for help on using the changeset viewer.