clarify licensing master
authorIan Kelling <iank@fsf.org>
Tue, 16 Apr 2024 05:33:34 +0000 (01:33 -0400)
committerIan Kelling <iank@fsf.org>
Tue, 16 Apr 2024 05:33:34 +0000 (01:33 -0400)
README
src/identify-distros
src/package-manager-abstractions

diff --git a/README b/README
index d0017ce0c6ac9a407689bd5c44601081cf3038e4..39ab9eef08a8810acf10748425771e91e4fbf522 100644 (file)
--- a/README
+++ b/README
@@ -4,3 +4,5 @@ Currently: debian based, fedora and arch. Debian has the best support.
 
 Please email me if you have a patches, bugs, feedback, or republish this
 somewhere else: Ian Kelling <ian@iankelling.org>.
+
+See the source files for license info.
index a3bc4028f26c6559e4d4901cddc5aef2a17da82d..4e461b014ea74113a183cd49e73f5aa1f55517a3 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/bash
-# Copyright (C) 2014 Ian Kelling
+# I, Ian Kelling, follow the GNU license recommendations at
+# https://www.gnu.org/licenses/license-recommendations.en.html. They
+# recommend that small programs, < 300 lines, be licensed under the
+# Apache License 2.0. This file contains or is part of one or more small
+# programs. If a small program grows beyond 300 lines, I plan to switch
+# its license to GPL.
+
+# Copyright 2024 Ian Kelling
 
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
index 96e4f6db55335e3263e59aa9d702d87bb28bfa8d..81940bbbb319fd256a80c3c8963d7c49d648a6ec 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/bash
-# Copyright (C) 2014 Ian Kelling
+# I, Ian Kelling, follow the GNU license recommendations at
+# https://www.gnu.org/licenses/license-recommendations.en.html. They
+# recommend that small programs, < 300 lines, be licensed under the
+# Apache License 2.0. This file contains or is part of one or more small
+# programs. If a small program grows beyond 300 lines, I plan to switch
+# its license to GPL.
+
+# Copyright 2024 Ian Kelling
 
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -234,7 +241,7 @@ EOF
   }
   pkgfiles() {
     if dpkg -s "$1" &>/dev/null; then
-      dpkg-query -L $1
+      dpkg-query -L $1 | while read -r l; do [[ -f $l ]] && printf "%s\n" "$l"; done
     else
       apt-file -x list "^$1$"
     fi