░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/share/doc/python3-debian/examples/debfile
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: changelog_head
#!/usr/bin/python3 # changelog_head - head like tool for .deb changelog entries # Copyright (C) 2007 Stefano Zacchiroli <zack@debian.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. """Like "head" for changelog entries, return last n-th entries of the changelog shipped in a .deb file.""" import sys from debian import debfile if __name__ == '__main__': if len(sys.argv) > 3 or len(sys.argv) < 2: print("Usage: changelog_head DEB [ENTRIES]") print(" ENTRIES defaults to 10") sys.exit(1) entries = 10 try: entries = int(sys.argv[2]) except IndexError: pass deb = debfile.DebFile(sys.argv[1]) chg = deb.changelog() entries = chg._blocks[:entries] print(''.join(map(str, entries)))
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 ar
?
1.3 KB
2023-01-31 19:04
EDIT
📄 changelog_head
?
966 B
2023-01-31 19:04
EDIT
📄 dpkg-info
?
1.7 KB
2023-01-31 19:04
EDIT
📄 extract_cron
?
1.2 KB
2023-01-31 19:04
EDIT