summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-31Add 'lint' target to run shellcheckv5Dave Reisner
2019-02-12Revert "archweb: use jq's -e flag to indicate not-found as failure"Dave Reisner
This reverts commit b233aceb92aed4fcdd6a918647c32c915d4fcc71 while preserving bd3f96a5171cf797bf8ba59601a1a767ed036a05. jq, even with -e, does not exit non-zero when given an empty input. This is apparently a known feature: https://github.com/stedolan/jq/issues/1497 https://github.com/stedolan/jq/issues/1142 Thus, revert this oversimplification which leads to problems when curl fails, or otherwise returns an empty response body. Closes #29.
2019-01-28Drop packages/ suffix from cache entriesDave Reisner
2019-01-27Flush the cache on upgrades of aspDave Reisner
This makes the cache an implementation detail which we can freely change version to version.
2019-01-19change to git-show for condition checkErick Cafferata
fixup: 0a6a4d0 Use exit status rather than string emptiness - git-ls always returns 0 as exit status, so it can't be used as a check. git-show does return an error status.
2019-01-17Drop removed targets from .PHONYDave Reisner
Closes #27.
2019-01-17Use exit status rather than string emptinessDave Reisner
2019-01-17tidy up MakefileDave Reisner
2019-01-17Merge pull request #26 from ThePiGrepper/ups/exp/fixesDave Reisner
parsing issue and missing function
2019-01-17fix parse issue in package_get_repos_with_arch()Erick Cafferata
- Error happens with repositories with '-' in the name. ie: community-testing, the '<repo>-<arch>' string gets parsed wrong (repo=community,arch=testing-x86_64). - This patch will hold up at least until an arch with a '-' in the name appears.
2019-01-17replace die() for log_fatal()Erick Cafferata
2018-09-13Always rely on git for versioningv4Dave Reisner
2018-09-13Fix some shellcheck warningsDave Reisner
2018-09-13Use --shared instead of --local for clonesDave Reisner
A second attempt at fixing https://bugs.archlinux.org/task/60027 -- using --shared is much simpler and results in better diskspace savings.
2018-09-13Revert "Avoid hardlinks when cloning across filesystems"Dave Reisner
This reverts commit 33b433898ebd7771ca045338bfca7c910312970c.
2018-09-12Avoid hardlinks when cloning across filesystemsDave Reisner
Would be nice if git detected this for us, but sadly it doesn't.
2018-09-08prepare v3v3Dave Reisner
2018-08-19Use --local when creating a git clone for checkoutDave Reisner
While we're here, merge our 'git config' command into the clone.
2018-08-19Avoid cd, references to $startdirDave Reisner
just set GIT_DIR appropriately and always operate from the original $PWD. As part of this, let's cleanup our error handling in initialize() a fair bit.
2018-04-04simplify quiet_gitDave Reisner
No need to define a whole array for passing -q
2018-04-04urlencode query param in archweb requestsAndreas Grapentin
Some packages, e.g. libsigc++-docs, needs to be properly hex-escaped.
2018-02-10avoid coloring when parsing output of 'git branch'Dave Reisner
Fixes #22.
2017-11-26archweb: use jq's -e flag to indicate not-found as failureDave Reisner
2017-11-18Avoid corrupting caches when network is unavailableDave Reisner
This removes the use of a tempfile entirely, and only updates the cache when `git ls-remote` succeeds. Based on a PR by polygamma: https://github.com/falconindy/asp/pull/20
2017-08-20Bump version to v2v2Dave Reisner
2017-08-20Use https as the default git transportDave Reisner
Closes #17.
2017-08-20simplify subtree decision makingDave Reisner
2017-07-08add set-git-protocol commandDave Reisner
While we're at it, separate our help output into two sections, since we're accumulating a growing list of subcommands which operate not on packages, but on the meta level of the asp repo. Closes #15.
2017-07-08avoid the need to maintain a separate list of actionsDave Reisner
We have our nice action__ prefix on all of our action disspatchers, so let's just use that to our advantage. While we're here, fix the return code when we encounter an ambiguous action
2017-07-07fully qualify remote ref to avoid ambiguityDave Reisner
This solves the problem of: $ asp checkout foo $ asp list-arches foo warning: refname 'packages/packages/foo' is ambiguous. x86_64 i686 Same for list-repos (duh, shared codepath)
2017-07-07ensure package_resolve returns an error on failed lookupDave Reisner
2017-06-19alphabetize action list, usage, manpageDave Reisner
2017-06-18package: prefer tar over bsdtarDave Reisner
bsdtar is common to all Arch systems, but other distros (debian-ish) might only have tar installed by default. Sadly, bsdtar has slightly nicer semantics in it's -s than GNU tar's transform when matchin directories in the tarball.
2017-05-30hide git repo prefix in list-{all,local} outputDave Reisner
This is an implementation detail -- no one should really need to know or core which repo the package came from. Moreover, there's nothing you can do with this information. It's conceivable that a package of the same name could exist in both git repos, but this would be semantically forbidden by Arch packaging policies, and not well handled by asp regardless of showing the prefix here. Fixes GH#14.
2017-05-23always preserve exit statuses on returnDave Reisner
2017-05-14declare victory: asp replaces abs, not just attempts toDave Reisner
2017-05-09Merge pull request #11 from pouar/fixDave Reisner
The curly braces in '${XDG_CACHE_HOME:-$HOME/.cache}/asp' seem to confuse the parser
2017-05-09fix manpagePouar
2017-04-13bump version to v1v1Dave Reisner
2017-04-13Ensure we do proper versioning in the script and manpageDave Reisner
Fixup how we do versioning for git builds, and fix the missing package version in the manpage and the static version in the script.
2017-04-06man: fix URL to svn-to-git reposDave Reisner
2017-04-06make ASPCACHE dir creation fatalDave Reisner
2017-04-05add syntax check testDave Reisner
2017-04-05remote: avoid need for awk post-processingDave Reisner
2017-04-05quote $subtree expansionDave Reisner
2017-04-04avoid leaking git output for completionsDave Reisner
completions might trigger tracking of a new package. it all goes to stderr, but let's not crowd the output regardless.
2017-04-04add ls-files to shell completionDave Reisner
2017-04-03lazily initialize ASPROOT if it doesn't yet existDave Reisner
2017-03-31assorted cleanupDave Reisner
mostly to make shellcheck happy
2017-03-25Merge pull request #10 from gubiq/patch-1Dave Reisner
Update README.md