Changeset 2113 in ProjectBuilder


Ignore:
Timestamp:
Jul 22, 2016, 2:39:48 AM (5 years ago)
Author:
Bruno Cornec
Message:
  • Revert tdir cleanup as it was affecting also the remote ftp server !
  • Fix gentoo link creation on remote ftp server
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2110 r2113  
    24032403#!/bin/bash
    24042404# Prepare a script to create correct links
     2405cd $tdir
    24052406for p in $src; do
    24062407    echo \$p | grep -q '.ebuild'
    24072408    if [ \$\? -eq 0 ]; then
    2408         pp=`echo \$j | sed 's/-[0-9.]+-r[0-9]*//'`
     2409        j=`basename \$p`
     2410        pp=`echo \$j | perl -pe 's/-[0-9\.]+-r[0-9].*\.ebuild/.ebuild/'`
    24092411        ln -sf \$j \$pp
    24102412    fi
     
    25832585            # Nothing to do here
    25842586        } else {
    2585             pb_system("$shcmd \"rm -rf $tdir ; mkdir -p $tdir ; cd $tdir ; $cmd\"","Preparing $tdir on $cptarget");
     2587            pb_system("$shcmd \"mkdir -p $tdir ; cd $tdir ; echo \'for i in $basesrc; do if [ -f \$i ]; then rm -f \$i; fi; done ; $cmd\' | bash -e\"","Preparing $tdir on $cptarget");
    25862588        }
    25872589    } else {
Note: See TracChangeset for help on using the changeset viewer.