;ò e¥]?c@sdkZdkTdkTdklZdkTdklZdkl Z dk l Z dk l Z d„Zdd „Zd „ZdS( N(s*(sRecPos(sremote_copy_move(sdoread(sdoadddef(sdobuildcCsttdƒgh|ƒSdS(sY Install package "pkgname". Returns zero for success, non-zero for an error. sinstall packageN(s install_pkgsRecPosspkgname(spkgname((s./mnt/gmirror/ports/devel/aap/work/DoInstall.pys doinstallsicCsúxãnoÛt|ƒodSn|o d}nd}td|d|ƒ}| oq n|o|ddjp|dd jodSn|dd jp|dd jot|td ƒ|ƒn|dd joPqq Wt |||ƒdS(s[ Assert that package "pkgname" is installed. Install it when it isn't present. iNsc. Continue anyway ssCannot find package "%s"! sa1. Let Aap attempt installing the package 2. Retry (install it yourself first) %sq. Quit Choice: iscsCsqsQsPackage "%s" was not founds1( s program_pathspkgnamesoptionalsopts raw_inputsrs recipe_errorsrpstacks_s install_pkgsrecdict(srpstacksrecdictspkgnamesoptionalsoptsr((s./mnt/gmirror/ports/devel/aap/work/DoInstall.pys assert_pkgs$  )" c Csñtƒ}| ot|tdƒƒtSntii|d|ƒ}yt |||ƒWn6t j o*}t|tdƒ|t|ƒƒnXzGtiƒ}yt||ƒWn6t j o*}t|tdƒ|t|ƒƒnXd}d|tƒf} t||dhd|