Created
August 6, 2009 14:57
-
-
Save deanwilson/163361 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package File::Find::Rule::Dpkg; | |
| # must get back to this at some point. | |
| use strict; | |
| use warnings; | |
| use vars qw/$VERSION/; | |
| use base 'File::Find::Rule'; | |
| $VERSION = '0.01'; | |
| sub File::Find::Rule::in { | |
| my $self = shift; | |
| my $package = shift; | |
| chomp( my @files = `dpkg -L $package` ); | |
| return @files; | |
| } | |
| 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment