[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.6-68-g2d638d2



The following commit has been merged in the master branch:
commit 2d638d237a1128c98c5e87c27e8093adf56bfb1e
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Apr 7 21:16:41 2012 +0200

    L::Lab{,::Entry}: Minor doc changes
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Lab.pm b/lib/Lintian/Lab.pm
index 7721986..ee793c0 100644
--- a/lib/Lintian/Lab.pm
+++ b/lib/Lintian/Lab.pm
@@ -88,7 +88,7 @@ Lintian::Lab -- Interface to the Lintian Lab
  $lab->open;
  
  # Fetch a package from the lab
- my $pkg = $lab->get_package ('lintian', 'binary', '2.5.4', 'all');
+ my $lpkg = $lab->get_package ('lintian', 'binary', '2.5.4', 'all');
  
  #FIXME: Add more to the synopsis here
  
@@ -96,6 +96,10 @@ Lintian::Lab -- Interface to the Lintian Lab
 
 =head1 DESCRIPTION
 
+This module provides an abstraction from "How and where" packages are
+placed.  It handles creation and deletion of the Lintian Lab itself as
+well as providing access to the entries.
+
 =head2 Methods
 
 =over 4
diff --git a/lib/Lintian/Lab/Entry.pm b/lib/Lintian/Lab/Entry.pm
index 0a61af8..a597e2e 100644
--- a/lib/Lintian/Lab/Entry.pm
+++ b/lib/Lintian/Lab/Entry.pm
@@ -29,18 +29,24 @@ Lintian::Lab::Entry - A package inside the Lab
 
  use Lintian::Lab;
  
- my $lab = Lintian::Lab->new ("dir", "dist");
- my $lpkg = $lab->get_package ("name", "version", "arch", "type", "path");
+ my $lab = Lintian::Lab->new ("dir");
+ my $lpkg = $lab->get_package ("name", "version", "arch", "type");
  
  # create the entry if it does not exist
  $lpkg->create unless $lpkg->exists;
  
+ # obtain an Lintian::Collect object.
+ my $info = $lpkg->info;
+ 
+ $lpkg->clear_cache;
+ 
  # Remove package from lab.
  $lpkg->remove;
 
 =head1 DESCRIPTION
 
-... FIXME ?
+This module provides basic access and manipulation about an entry
+(i.e.  processable) stored in the Lab.
 
 =head2 METHODS
 

-- 
Debian package checker


Reply to: