]> gitweb.fluxo.info Git - stowpkg.git/commitdiff
Adds binaries/sources options
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Sep 2017 21:24:42 +0000 (18:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Sep 2017 21:24:42 +0000 (18:24 -0300)
README.md
stowpkg

index 1230bea4cc90561768b603d3da7e6e979afb0e01..aeadff992184aed26d110d1f11fd9db15b7d262a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -34,6 +34,9 @@ Usage
     stowpkg search             # list    packages available on ports
     stowpkg install  <package> # install packages from source
     stowpkg build              # simple  package  builder (./configure && make && make install)
+    stowpkg list               # list    packages installed
+    stowpkg sources            # list    program  sources available
+    stowpkg binaries           # list    program  binaries available
 
 Running installed applications
 ------------------------------
@@ -79,12 +82,12 @@ Further development
 
 Other commands can easily be implemented:
 
-    stowpkg list               # list    packages installed
-    stowpkg remove   <package> # remove  packages
-    stowpkg purge    <package> # purge   packages
-    stowpkg update             # update  ports    repository
-    stowpkg upgrade  [package] # upgrade packages
-    stowpkg upstream <package> # check   packages versions at upstream
+    stowpkg remove   <package>           # remove  packages
+    stowpkg purge    <package>           # purge   packages
+    stowpkg update                       # update  ports    repository
+    stowpkg upgrade  [package]           # upgrade packages
+    stowpkg upstream <package>           # check   packages versions at upstream
+    stowpkg switch   <package> <version> # switch a package to another available version
 
 Also, per-architecture binary package support might be implemented using
 git-annex and GnuPG signatures, giving us commands like
diff --git a/stowpkg b/stowpkg
index 1b0538edb36cab032b882f7e39ca990467b1c7f4..f182bd01312fc224fc9c72fd20c0361595b08345 100755 (executable)
--- a/stowpkg
+++ b/stowpkg
@@ -231,6 +231,14 @@ stowpkg_list () {
   done | sort | uniq
 }
 
+stowpkg_binaries () {
+  ls $BINARIES
+}
+
+stowpkg_sources () {
+  ls $SOURCES
+}
+
 # Dispatch
 if grep -q "^stowpkg_$ACTION () {$" $0; then
   __stowpkg_initialize