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 $fh if 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. $part can 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. $value can be a string or an array ref. flexible queen πŸ’…
  • $entry->extend_part($part, $value) β€” concatenate $value at the end of the part. If the part is already a multi-line value, $value is 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() β€” returns 1 if the changelog entry doesn't contain anything at all. Returns 0 as 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 a Dpkg::Control object (possibly empty though). so like, always an object, never a undef situation πŸ™ˆ
  • $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 a Time::Piece object.
watch out: this function might return undef if there was no timestamp. so vibe-check your undef before 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