---
name: "Cupt::Cache::SourceVersion"
section: "3pm"
platform: "linux"
package: "libcupt-perl"
version: "1.5.14.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Cupt::Cache::SourceVersion"
---

# Cupt::Cache::SourceVersion(3pm)

store info about specific version of deb source package

## NAME

Cupt::Cache::SourceVersion - store info about specific version of deb source package

## FIELDS

### available\_as

```
  {
    'release' => $release_info
    'directory' => download URI appendage (directory part)
  }
```

See Release info in Cupt::Cache.

### package\_name

name of the package, string, defined in Debian Policy, X3.1

### binary\_package\_names

reference to array of binary package names (strings) that build from this package

### architecture

source architecture of the package, string, defined in Debian Policy, X5.6.8

### priority

priority, string, defined in Debian Policy, X5.6.6

### section

section, string, defined in Debian Policy, X5.6.5, can be undef

### standards\_version

version of the last Debian Policy the package conforms to

### maintainer

maintainer of the package, string

### uploaders

package uploaders list, reference to array of strings, defined in Debian Policy, X5.6.3

### version\_string

version string, defined in Debian Policy, X5.6.12

### build\_depends

\[ relation\_expression... \]

Debian Policy, X7.1, 'Build-Depends'

Note that relation expression in this in all other fields of this class is build upon Cupt::Cache::ArchitecturedRelation which is subclass of Cupt::Cache::Relation.

### build\_depends\_indep

\[ relation\_expression... \]

Debian Policy, X7.1, 'Build-Depends-Indep'

### build\_conflicts

\[ relation\_expression... \]

Debian Policy, X7.1, 'Build-Conflicts'

### build\_conflicts\_indep

\[ relation\_expression... \]

Debian Policy, X7.1, 'Build-Conflicts-Indep'

### tarball

```
  {
    'filename' => download URI appendage (file name ("leaf") part)
    'size' => size
    'md5sum' => MD5 hash sum of the file, can be undef
    'sha1sum' => SHA1 hash sum of the file, can be undef
    'sha256sum' => SHA256 hash sum of the file, can be undef
  }
```

### diff

same as tarball, can be whole undef in case of Debian native package

### dsc

same as tarball

### others

hash entry that contains other fields found in the version entry in form { `$name` =\> `$value` }.

## FLAGS

### o\_no\_parse\_relations

Option to don't parse dependency relation between packages, can speed-up parsing the version if this info isn't needed. Off by default.

### o\_no\_parse\_info\_onlys

Option to don't parse 'Maintainer', 'Uploaders', 'Section' and unknown fields (those which are put to others), can speed-up parsing the version if this info isn't needed. Off by default.

## METHODS

### new

creates an Cupt::Cache::SourceVersion

Parameters:

*initializer\_argument* - \[ `$package_name`, *fh*, *offset*, *ref\_release\_info* \]

where

*fh* - file handle to opened file that contains version entry

*offset* - offset in bytes to locate version entry in *fh*, may include 'Package:' line or not

*ref\_release\_info* - reference to release info

## METHODS

### uris

method, returns available URIs to download the .deb file.

Returns:

```
  {
    'tarball' => [ I<URI entry>... ],
    (optionally) 'diff' => [ I<URI entry>... ],
    'dsc' => [ I<URI entry>... ],
  }
```

where:

*URI entry* - { 'download\_uri' =\> *download\_uri*, 'base\_uri' =\> *base\_uri*, 'appendage' =\> *appendage* }

*download\_uri* - full URI to download

*base\_uri* - base URI (as specified in sources.list)

*appendage* - string to append to base URI to compute *download\_uri*, contains 'Filename' property of package entries.

### is\_signed

method, returns whether this version has signed source or not
