diff --git a/.gitignore b/.gitignore index 5b657ba..b66c3f3 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/debian/control b/debian/control index 8f004aa..0af0bef 100644 --- a/debian/control +++ b/debian/control @@ -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. \ No newline at end of file + 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 \ No newline at end of file diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..f5801f7 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +deblint_0.0.0-1_all.deb utils optional +deblint_0.0.0-1_amd64.buildinfo utils optional diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..3b87fea --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +deblint /usr/bin/ +README.md /usr/share/doc/deblint/ diff --git a/debian/rules b/debian/rules old mode 100644 new mode 100755 index 9677726..cbe925d --- a/debian/rules +++ b/debian/rules @@ -1,3 +1,3 @@ #!/usr/bin/make -f %: - dh $@ + dh $@ diff --git a/deblint b/deblint index abe2dd3..b87e723 100755 --- a/deblint +++ b/deblint @@ -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