[oe-commits] Chris Larson : do_unpack, do_patch: shift some responsibility around, clean things up

git version control git at git.openembedded.org
Thu Sep 2 16:20:29 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 900cc29b603691eb3a077cb660545ead3715ed54
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=900cc29b603691eb3a077cb660545ead3715ed54

Author: Chris Larson <chris_larson at mentor.com>
Date:   Wed Sep  1 04:52:10 2010 +0000

do_unpack, do_patch: shift some responsibility around, clean things up

- Consolidate 'is this file a patch' logic
- Move unpack functions from classes into oe.unpack
- Move the unpacking message printing into do_unpack
- Move the destination directory determination into do_unpack
- Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd
- Use shutil.copy2/copytree for ordinary file "unpack"
- Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls
- Make handling of globs in url paths explicit rather than implicit, calling
  oe_unpack on each one, so showing an unpacking message to the user for each
  globbed file, rather than the entirety

Signed-off-by: Chris Larson <chris_larson at mentor.com>
Acked-by: Khem Raj <raj.khem at gmail.com>
Acked-by: Tom Rini <tom_rini at mentor.com>

---

 classes/base.bbclass  |  161 +++++++++++++++++--------------------------------
 classes/patch.bbclass |   35 ++++-------
 lib/oe/unpack.py      |   95 +++++++++++++++++++++++++++++
 3 files changed, 165 insertions(+), 126 deletions(-)

Diff:   http://gitweb.openembedded.net/?p=openembedded.git/?a=commitdiff;h=900cc29b603691eb3a077cb660545ead3715ed54




More information about the Openembedded-commits mailing list