From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eiRsr-0002cz-9U for ptxdist@pengutronix.de; Sun, 04 Feb 2018 22:31:33 +0100 Received: from mgr by dude.hi.pengutronix.de with local (Exim 4.90) (envelope-from ) id 1eiRsr-0001hA-1m for ptxdist@pengutronix.de; Sun, 04 Feb 2018 22:31:33 +0100 From: Michael Grzeschik Date: Sun, 4 Feb 2018 22:31:26 +0100 Message-Id: <20180204213126.6457-1-m.grzeschik@pengutronix.de> Subject: [ptxdist] [PATCH] ptxdist: add xpkg_install to install external ipkgs List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de VGhpcyBwYXRjaCBlbmFibGVzIHRoZSBmZWF0dXJlIHRvIGNhbGwgaW5zdGFsbF94cGtnIGluIHRo ZSB0YXJnZXRpbnN0YWxsIHN0YWdlCm9mIGFueSBydWxlLiBUaGlzIHdheSBpdCBpcyBwb3NzaWJs ZSB0byBpbnN0YWxsIGV4dGVybmFsIGlwa2dzIGludG8gdGhlIHRhcmdldHMKcm9vdGZpbGVzeXN0 ZW0uCgpUaGUgbmV4dCBleGFtcGxlIGRlc2NyaWJlcyBhbiBzaW1wbGUgdXNlY2FzZSB3aXRoIHR3 byBwYWNrYWdlcyBpbiBsb2NhbF9zcmMuCgpQQUNLQUdFUy0kKEVYQU1QTEVSVUxFX0lQS0dTKSAr PSBleGFtcGxlcnVsZS1pcGtncwpFWEFNUExFUlVMRV9JUEtHU19WRVJTSU9OCTo9IDEuMApFWEFN UExFUlVMRV9JUEtHUw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nCisgICAgIworICAgIGlmIFsgLWUgIiR7cGtn X3hwa2dfbWFwfSIgXTsgdGhlbgorCXNlZCAtaSAtZSAiL14ke3BrZ194cGtnfSQvZCIgIiR7cGtn X3hwa2dfbWFwfSIKKyAgICBmaSAmJgorICAgIGVjaG8gIiR7cGtnX3hwa2d9IiA+PiAiJHtwa2df eHBrZ19tYXB9IiB8fCByZXR1cm4KKworICAgICMKKyAgICAjIGxpY2Vuc2UgLyBjdXJyZW50bHkg bm90IHBlciBwYWNrYWdlCisgICAgIworICAgIGVjaG8gLW4gInhwa2dfaW5zdGFsbDoJY29sbGVj dGluZyBsaWNlbnNlICgke3BrZ194cGtnX2xpY2Vuc2V9KSAuLi4gIgorICAgIGVjaG8gIiR7cGtn X3hwa2dfbGljZW5zZX0iID4gIiR7cGtnX3hwa2dfbGljZW5zZV9maWxlfSIKKyAgICBlY2hvICJk b25lLiIKKworICAgICMKKyAgICAjIHJlbW92ZSBvbGQgcGtncworICAgICMgbm90ZTogbm8gdmVy c2lvbiBoZXJlLCBzbyB3ZSByZW1vdmUgcGFja2FnZXMgd2l0aCBvbGQgdmVyc2lvbnMgdG9vCisg ICAgIworICAgIHJtIC1mICIke3B0eF9wa2dfZGlyfS8ke3BrZ194cGtnfSJfKiIke1BUWERJU1Rf SVBLR19BUkNIX1NUUklOR30uaXBrIgorCisgICAgIworICAgICMgY29weSB0byBzYXRpc2Z5IGlt YWdlIGNyZWF0aW9uCisgICAgIworICAgIGNwICIke3NvdXJjZX0iICIke3B0eF9wa2dfZGlyfS8i CisKKyAgICAjCisgICAgIyBvbmx5IGNyZWF0ZWQgdG8gc2F0aXNmeSBpbWFnZSBjcmVhdGlvbgor ICAgICMKKyAgICB0b3VjaCAke3BrZ194cGtnX3Blcm1zfQorCisgICAgZmFrZXJvb3QgcHR4ZF9t YWtlX3hwa2dfaW5zdGFsbF9pbXBsICR7c291cmNlfQorfQorZXhwb3J0IC1mIHB0eGRfbWFrZV94 cGtnX2luc3RhbGwKLS0gCjIuMTUuMQoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXgu ZGU=