Skip to content

Commit

Permalink
Debian build files update, refresh apt cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-h committed Apr 16, 2024
1 parent 00aeeba commit e554a30
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
.vscode/settings.json
__pycache__/
debian/deblint.debhelper.log
debian/deblint.substvars
debian/deblint/DEBIAN/control
debian/deblint/DEBIAN/md5sums
debian/deblint/usr/bin/deblint
debian/deblint/usr/share/doc/deblint/changelog.Debian.gz
debian/deblint/usr/share/doc/deblint/README.md
9 changes: 5 additions & 4 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ Homepage: https://github.com/frode-h/deblint

Package: deblint
Architecture: all
Depends: python3-regex, python3-apt
Depends: python3-apt
Description: Track down unused Debian packages
Deblint is a tool for tracking down unused Debian packages that no other packages depend on. It's designed to help you clean up your system by identifying and removing packages that are no longer needed.

Deblint uses atime to decide which packages have not been used in the set time.
Deblint is a tool for tracking down unused Debian packages that no other
packages depend on. It's designed to help you clean up your system by
identifying and removing packages that are no longer needed.
Deblint uses atime to decide which packages have not been used in the set time
2 changes: 2 additions & 0 deletions debian/files
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deblint_0.0.0-1_all.deb utils optional
deblint_0.0.0-1_amd64.buildinfo utils optional
2 changes: 2 additions & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deblint /usr/bin/
README.md /usr/share/doc/deblint/
2 changes: 1 addition & 1 deletion debian/rules
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/make -f
%:
dh $@
dh $@
1 change: 1 addition & 0 deletions deblint
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def main():
Main function to execute the script logic. Takes command line argument for number of days of inactivity.
"""
cache = apt.Cache()
cache.update()
cache.open()

days_inactive = int(sys.argv[1]) if len(sys.argv) > 1 else 7
Expand Down

0 comments on commit e554a30

Please sign in to comment.