Top «Prev(2004-06-29) Latest Next(2004-07-12)» Edit

pterjan's diary


2004-07-02 Let's start the Week End !

  ruby-rpm

I just discovered that ruby-rpm was not dead. When I first discovered the binding few months ago, it was for rpm 4.0.4 but I found a version for rpm 4.2 today !

I packaged it for Mandrakelinux and tryied playing with it :

$ irb
irb(main):001:0> require 'rpm'
=> true
irb(main):002:0> p = RPM::Package.new('/tmp/ruby-rpm-1.2.0-1mdk.i586.rpm')
=> ruby-rpm-1.2.0-1mdk
irb(main):003:0> p.changelog.length
=> 42
irb(main):004:0> p.changelog[0]['name']
=> "Pascal Terjan  1.2.0-1mdk"
irb(main):005:0> RPM.vercmp('1.0alpha2','1.0')
=> 1
irb(main):006:0> RPM.vercmp('1.0alpha2','1.0beta')
=> -1
irb(main):007:0> db = RPM::DB.new
=> #
irb(main):008:0> db.entries[42]
=> drakconf-10-13mdk
irb(main):009:0> db.find_all { |package| package.version.to_vre == '1.2.0-1mdk' }
=> [libgcrypt11-1.2.0-1mdk, ruby-rpm-1.2.0-1mdk]

  PLF Logo contest

As the contest will end up next tuesday and I will have no time until that, I tryied to finish my logo.

I don't like the gun I draw, so I went back to dams' version (I only sligthly modified it). So, I end up with most of my logo coming from his work :(

Anyway, this was a nice occasion to discover inkscape which is really nice !


2004|06|07|08|09|11|
2005|01|02|05|06|07|08|09|10|11|12|
2006|01|02|03|06|08|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|12|
2011|02|04|06|
2012|01|05|11|
2013|01|02|04|06|
2014|02|
2015|06|
2017|05|07|12|