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

Re: Distribution installer that defaults to Debian?



On Mon, Dec 20, 2010 at 01:00:31PM +0100, gregor herrmann wrote:
> If you use apt-file I think the approach from

<code snipped>

> (In general I think you can drop the apt-file part as dh-make-perl's
> methods provide you with basically the same info. And you should also
> be able to get the package version from it.)

Gregor,

Thanks for your informed suggestions! I'll drop the apt-file
part.

I'd be interested in an example of getting package version
information.

What I tried is:

   use Debian::AptContents;
   my $c = Debian::AptContents->new({ homedir => '/tmp/dh-make-perl'});
   
   my $dep = $c->find_perl_module_package('Padre','123.0');
   
   print $dep->ver; # 123.0  (actual version is 0.76.ds1-1)

Best,

Joel


> Cheers,
> gregor
> 
> -- 
>  .''`.   http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4
>  : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
>  `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
>    `-    NP: Joan Baez: Don't cry for me Argentina



-- 
Joel Roth


Reply to: