summaryrefslogtreecommitdiff
path: root/test/librestage-test.sh
AgeCommit message (Collapse)Author
2013-06-08librestage: handle PKGDEST better, fix testsv20130608Luke Shumaker
2013-06-05unit tests: make XDG_CONFIG_HOME not exist when checking usage textLuke Shumaker
2013-06-05librestage: clean up, add unit testsLuke Shumaker
Contained the text "# TODO refactor this", and I can't just stick to that fragment of code, can I? I actually didn't change too much, despite what the diff looks like. - move everything into a main() routine - redo the usage() text - rename a few variables - fix where "${#repos}" should have been "${#repos[@]}" - use [[...]] instead of [...] - use "if A; then B; else C; fi" instead of "A || C && B" - use CARCH instead of looping over every possible architecture. - only look for files that match PKGEXT, as set in makepkg.conf - pull out duplicate code for error handling - don't warn when creating "staging/REPONAME"