Cupt::Core(3) core subroutines for Cupt

REGEXES

package_name_regex

regular expression to check package name string

version_string_regex

regular expression to check version string

SUBROUTINES

compare_version_strings

free subroutine, compares two version strings

Parameters:

first_version_string

second_version_string

Returns:

  • -1, if the first_version_string is less than second_version_string
  • 0, if the first_version_string is equal to second_version_string
  • 1, if the first_version-string if greater than second_version_string

is_version_string_native

returns boolean answer, true if the version is version for Debian native package, and false otherwise

are_hash_sums_present

returns boolean answer, true if at least one valid hash sum (md5, sha1, sha256) present

compare_hash_sums

returns boolean answer, whether hash sums in the specified hashes match

Parameters:

left - hash

right - hash

glob_to_regex

modifies the string parameter in-place