Dpkg::Changelog::Entry(3perl)
π¦ Dpkg::Changelog::Entry(3perl) β the whole changelog-entry vibe, explained π
okay so this is the page for Dpkg::Changelog::Entry(3perl), bestie, and it's literally all about one single changelog entry β like, not the whole file, just one gorgeous little block of it. come sit with me π«Ά
πΈ NAME πΈ
Dpkg::Changelog::Entry β represents a changelog entry. that's it, that's the whole identity. main character energy, one entry at a time β¨
π DESCRIPTION π
So like. This class represents a changelog entry. Iconic. It's composed of a set of lines with specific purpose:
- a header line
- changes lines
- a trailer line
and blank lines can be between those kind of lines. no cap, that's the whole anatomy π
β¨ METHODS β¨
$entry = Dpkg::Changelog::Entry->new()β creates a new object. but heads up bestie: it doesn't represent a real changelog entry until one has been successfully parsed or built from scratch. it's giving "empty shell era" π$string = "$entry"$string = $entry->output([$fh])β get a string representation of the changelog entry. optionally, print the string representation of the changelog entry to a filehandle. so you can hand it a$fhif you want it to go straight out, iykyk π₯$string = $entry->get_part($part)@part = $entry->get_part($part)β return either a string (for a single line) or an array ref (for multiple lines) corresponding to the requested part.$partcan be"header","changes","trailer","blank_after_header","blank_after_changes","blank_after_trailer". six flavors of part, pick your fighter π$entry->set_part($part, $value)β set the value of the corresponding part.$valuecan be a string or an array ref. flexible queen π$entry->extend_part($part, $value)β concatenate$valueat the end of the part. If the part is already a multi-line value,$valueis added as a new line otherwise it's concatenated at the end of the current line. lowkey the detail that matters most π§$bool = $entry->is_empty()β returns1if the changelog entry doesn't contain anything at all. Returns0as soon as it contains something in any of its non-blank parts. so blanks alone don't count as "content," periodt π$entry->normalize()β normalize the content. Strip whitespaces at end of lines, use a single empty line to separate each part. tidy-up time, we love a glow-up β¨$src = $entry->get_source()β return the name of the source package associated to the changelog entry. who's your source bestie π$ver = $entry->get_version()β return the version associated to the changelog entry.@dists = $entry->get_distributions()β return a list of target distributions for this version. plural, a whole list of them πΈ$ctrl = $entry->get_optional_fields()β return a set of optional fields exposed by the changelog entry. It always returns aDpkg::Controlobject (possibly empty though). so like, always an object, never aundefsituation π$urgency = $entry->get_urgency()β return the urgency of the associated upload. how urgent, on a scale of "whenever" to "RIGHT NOW" π₯$maint = $entry->get_maintainer()β return the string identifying the person who signed this changelog entry. the signer, the main character π$time = $entry->get_timestamp()β return the timestamp of the changelog entry.$time = $entry->get_timepiece()β return the timestamp of the changelog entry as aTime::Pieceobject.
watch out: this function might returnundefif there was no timestamp. so vibe-check yourundefbefore you use it, bestie π
$string = $entry->get_dpkg_changes()β returns a string that is suitable for usage in a"Changes"field in the output format of"dpkg-parsechangelog". plug-and-play content π«Ά
π CHANGES π
β Version 1.01 (dpkg 1.18.8)
- New method:
$entry->get_timepiece(). she arrived and she slayed π
π Version 1.00 (dpkg 1.15.6)
- Mark the module as public. coming out era, we love to see it πΈ
okay that's the whole page, you're basically an expert now. this gorgeous thing lives in libdpkg-perl, version 1.23.11-dirty, dated 2026-09-09 β go forth and parse some entries, bestie, ily ππ¦π
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms