[SCM] Debian package checker branch, master, updated. 2.5.1-84-geb1c186
The following commit has been merged in the master branch:
commit 520395cd4674af7457250e37df22923f2ffc1e22
Author: Niels Thykier <niels@thykier.net>
Date: Tue Jul 12 01:27:46 2011 +0200
Updated the Lab::Package synopsis
It refered to $lpkg->unpack which no longer exists
diff --git a/lib/Lab/Package.pm b/lib/Lab/Package.pm
index f4ac509..93802d6 100644
--- a/lib/Lab/Package.pm
+++ b/lib/Lab/Package.pm
@@ -32,8 +32,9 @@ Lab::Package - A package inside the Lab
my $lab = new Lab("dir", "dist");
my $lpkg = $lab->get_lab_package("name", "version", "type", "path");
- # Unpack the package
- $lpkg->unpack() or die("Could not unpack: $!");
+ # create the entry if it does not exist
+ $lpkg->create_entry unless $lpkg->entry_exists;
+
# Remove package from lab.
$lpkg->delete_lab_entry();
--
Debian package checker
Reply to: