From patchwork Wed Oct 17 07:02:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 12294 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 E6F631D516F for ; Wed, 17 Oct 2012 07:02:16 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5EDAFA1837D for ; Wed, 17 Oct 2012 07:02:16 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so5079850iag.11 for ; Wed, 17 Oct 2012 00:02:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=ukw3mQP6L4Z2lz00Or0WIKPju72FUY3hk96wumxEuBM=; b=QmmrLuSzs1N3G6DY75k5UOoMS2kKqnOSex/r96LbTA0JDNZL/kWrVby9mdGCcxQ28J IZxEWRem7cUrADZxEDAFaJt7ZnmdpNOPgu//x/Wor3rrgZHlhinUKGjxxJSnCWc/D+OL 2pNSoMHY0BQj2DDPIUuvf8gb+1tAiSJQ9Ugvgyeb9klNggDFS1jmFmiblIGz7bMZJ5IH iOPUW5y1CTQaBjumkPklZ/4qDYcsb0s64RnjGP2cukpp3N8Ub+IvglmnN9hY6lej7zFi j0QKbKWus1gd+uUijQuPKNRzexgUHqTBNyqmS+RWGIn7kz5zyRil7ordpc2kPsBvDfjN jsrA== Received: by 10.50.100.137 with SMTP id ey9mr617399igb.57.1350457335808; Wed, 17 Oct 2012 00:02:15 -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.50.67.148 with SMTP id n20csp853652igt; Wed, 17 Oct 2012 00:02:14 -0700 (PDT) Received: by 10.180.79.7 with SMTP id f7mr1844937wix.22.1350457334186; Wed, 17 Oct 2012 00:02:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id p3si23165081wea.126.2012.10.17.00.02.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 00:02:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TONdt-00028R-EN for ; Wed, 17 Oct 2012 07:02:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 5E46AE02D0 for ; Wed, 17 Oct 2012 07:02:13 +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: 576 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-image-tools/linaro-image-tools/trunk] Rev 576: Export the updated manifest when manipulating with linaro-hwpack-replace. Message-Id: <20121017070213.31396.79610.launchpad@ackee.canonical.com> Date: Wed, 17 Oct 2012 07:02:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16152"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 4ec52aa83e4d4a772ea2eecc7524590b5cf9f0ea X-Gm-Message-State: ALoCoQll7uiIMZnKrN8wN14dV3OpyO0j20Da60/H5K8+T3prgFJcSPfvLhQI9jqYiOxymk5fmVZS Merge authors: Ricardo Salveti (rsalveti) Related merge proposals: https://code.launchpad.net/~rsalveti/linaro-image-tools/export-updated-manifest/+merge/130018 proposed by: Ricardo Salveti (rsalveti) review: Approve - Fathi Boudra (fboudra) ------------------------------------------------------------ revno: 576 [merge] committer: Fathi Boudra branch nick: linaro-image-tools timestamp: Wed 2012-10-17 10:01:20 +0300 message: Export the updated manifest when manipulating with linaro-hwpack-replace. 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-10-13 12:11:28 +0000 +++ linaro-hwpack-replace 2012-10-17 07:01:20 +0000 @@ -222,7 +222,7 @@ modify_Packages_info(debpack_dirname, new_debpack_info, prefix_pkg_remove) - #tar the hardware pack with the new debian file included in it + # Compress the hardware pack with the new debian file included in it tar = tarfile.open(hwpack_name , "w:gz") origdir = os.getcwd() os.chdir(tempdir) @@ -236,6 +236,10 @@ os.rename(hwpack_name, old_hwpack) hwpack_name = old_hwpack + # Export the updated manifest file + manifest_name = hwpack_name.replace('.tar.gz', '.manifest.txt') + shutil.copy2(os.path.join(tempdir, 'manifest'), manifest_name) + except Exception, details: logger.error("Error Details: %s", details) status = 1