From 364a963b3d6986fa7c011ec02b1b75e2d4faf0c8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 14 May 2019 23:34:51 +0300 Subject: [PATCH] puke: remove pointless operator --- README.md | 6 ------ puke | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index c6f1612b..ae9674cf 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ done < depends * [Getting started with `puke`](#getting-started-with-puke) * [`puke build pkg`](#puke-build-pkg) * [`puke checksum pkg`](#puke-checksum-pkg) - * [`puke depends pkg`](#puke-depends-pkg) * [`puke install pkg`](#puke-install-pkg) * [`puke remove pkg`](#puke-remove-pkg) * [`puke list` or `puke list pkg`](#puke-list-or-puke-list-pkg) @@ -65,7 +64,6 @@ Puke has 6 different "operators". - `build`: Build a package. - `checksum`: Generate checksums for a package. -- `depends`: List a package's dependencies . - `install`: Install a built package. - `remove`: Remove an installed package. - `list`: List installed packages. @@ -79,10 +77,6 @@ Puke's `build` operator handles a package from its source code to the installabl Puke's `checksum` operator generates the initial checksums for a package from every source in the `sources` file. -### `puke depends pkg` - -Puke's `depends` operator does not recursively check dependencies. It only lists the direct dependencies for the selected package. In the future, more complex dependency solving may be added. - ### `puke install pkg` Puke's `install` operator takes the built `.tar.gz` file and installs it in the system. This is as simple as removing the old version of the package (*if it exists*) and unpacking the archive at `/`. diff --git a/puke b/puke index acd6623d..d97cccb4 100755 --- a/puke +++ b/puke @@ -178,16 +178,14 @@ args() { pkg_checksum log "Generated checksums." ;; - d*) [ -f depends ] && cat depends ;; i*) pkg_install ;; l*) pkg_list "$2" ;; r*) pkg_remove || die "Package '$name' not installed" ;; u*) pkg_updates ;; - *) log "$0 [b|c|d|i|l|r|u] [pkg]" \ + *) log "$0 [b|c|i|l|r|u] [pkg]" \ "build: Build a package." \ "checksum: Generate checksums." \ - "depends: See package dependencies." \ "install: Install a package." \ "list: List packages." \ "remove: Remove a package." \