class Rupert::RPM::Header

Constants

BASENAMES_TAG
DIRINDEXES_TAG
DIRNAMES_TAG
NAME_TAG
SIZE_TAG

Public Class Methods

new(index) click to toggle source

Creates a new header.

@param index [Rupert::RPM::Index] index structure holding actual

information
# File lib/rupert/rpm/header.rb, line 14
def initialize(index)
  @index = index
end

Public Instance Methods

basenames() click to toggle source

Package files basename list.

@return [Array] of String

# File lib/rupert/rpm/header.rb, line 35
def basenames
  @index.get(BASENAMES_TAG)
end
dirindexes() click to toggle source

Map between basenames and relative directories.

@return [Array] of Fixnum, where each number represents an index in the dirnames array

# File lib/rupert/rpm/header.rb, line 50
def dirindexes
  @index.get(DIRINDEXES_TAG)
end
dirnames() click to toggle source

Installed directory list.

@return [Array] of String

# File lib/rupert/rpm/header.rb, line 42
def dirnames
  @index.get(DIRNAMES_TAG)
end
name() click to toggle source

Package name.

@return [String]

# File lib/rupert/rpm/header.rb, line 21
def name
  @index.get(NAME_TAG)
end
uncompressed_size() click to toggle source

Package uncompressed size (bytes).

@return [Fixnum]

# File lib/rupert/rpm/header.rb, line 28
def uncompressed_size
  @index.get(SIZE_TAG)
end