From patchwork Wed Aug 3 11:50:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Deepti B. Kalakeri" X-Patchwork-Id: 3235 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8CE1023F3D for ; Wed, 3 Aug 2011 11:50:47 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 55D44A182A8 for ; Wed, 3 Aug 2011 11:50:47 +0000 (UTC) Received: by qwb8 with SMTP id 8so114845qwb.11 for ; Wed, 03 Aug 2011 04:50:46 -0700 (PDT) Received: by 10.229.241.19 with SMTP id lc19mr3443764qcb.45.1312372246750; Wed, 03 Aug 2011 04:50:46 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.6.73 with SMTP id 9cs155710qcy; Wed, 3 Aug 2011 04:50:46 -0700 (PDT) Received: by 10.227.55.17 with SMTP id s17mr5979928wbg.57.1312372245441; Wed, 03 Aug 2011 04:50:45 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id o5si1420390wbh.22.2011.08.03.04.50.45; Wed, 03 Aug 2011 04:50:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QoZyG-0000Wo-TU for ; Wed, 03 Aug 2011 11:50:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DAA842EB324 for ; Wed, 3 Aug 2011 11:50:44 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: linaro-image-tools X-Launchpad-Branch: ~linaro-image-tools/linaro-image-tools/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 399 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-image-tools/linaro-image-tools/trunk] Rev 399: The l-m-c was failing to use the hwpack created by linaro-hwpack-replace as Message-Id: <20110803115044.25712.87236.launchpad@loganberry.canonical.com> Date: Wed, 03 Aug 2011 11:50:44 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13573"; Instance="initZopeless config overlay" X-Launchpad-Hash: bfdda1bce9904f76528bac6fb5ea35e8ccd2312a Merge authors: Deepti B. Kalakeri (deeptik) Related merge proposals: https://code.launchpad.net/~deeptik/linaro-image-tools/fix-targz-repack-file/+merge/70286 proposed by: Deepti B. Kalakeri (deeptik) review: Approve - Mattias Backman (mabac) ------------------------------------------------------------ revno: 399 [merge] committer: Deepti B. Kalakeri branch nick: linaro-image-tools timestamp: Wed 2011-08-03 12:46:11 +0100 message: The l-m-c was failing to use the hwpack created by linaro-hwpack-replace as there was a problem in the hierarchy of the files it packed and it had a "./" appended in every file. This patch fixes the hwpack files path. modified: linaro-hwpack-replace --- lp:linaro-image-tools https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk You are subscribed to branch lp:linaro-image-tools. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription === modified file 'linaro-hwpack-replace' --- linaro-hwpack-replace 2011-07-28 16:32:53 +0000 +++ linaro-hwpack-replace 2011-08-03 11:29:43 +0000 @@ -23,6 +23,7 @@ import os import sys import shutil +import glob import logging import tarfile import tempfile @@ -201,7 +202,8 @@ #tar the hardware pack with the new debian file included in it tar = tarfile.open( hwpack_name , "w:gz") os.chdir(tempdir) - tar.add('.', recursive=True) + for file_name in glob.glob('*'): + tar.add(file_name, recursive=True) tar.close() except Exception, details: logger.error("Error Details: %s", details)