Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on May 22, 2010
  1. merge branch colorcfg

  2. doc: fixup missing emphasis

  3. conf: implement color config parsing

    read from config file at $XDG_CONFIG_HOME/cower/cower.conf
    declare static structure of valid colors and corresponding values
    use binary search to validate color options in config file
  4. util: convert remainder of colored output to use config->colors rathe…

    …r than hardcoded colorings
  5. util: start of custom color code implementation

    * add bold colors, which i've been using all along incorrectly as nonbold.
    * change C_ON token to a format string which will be sprintf'd to the
    proper color.
  6. directly access alpm_list struct members rather than using alpm_list_…

    …next and alpm_list_getdata
  7. download: refactor setup work done before fetching taurballs.

    remove some unused code and be more descriptive if/when any errors occur.
    manually allocate a buffer to avoid undefined behavior when passing NULL to getcwd
Commits on May 21, 2010
  1. main: check for valid args sooner.

    check before doing anything that argc != 1
    check after parsing args that config->op != 0
  2. download: add curl error checking for proper curl response and http r…

    …esponse code. should have added this ages ago
  3. doc: remove old POD page

  4. makefile: cosmetic change. build output should uniformly show the out…

    …put of the operation, not the input
  5. depends: refactor PKGBUILD parsing

    Instead of duping the already allocated buffer, find the end of it and
    insert a '\0' in place of the closing paren. Pass this pointer to our
    array parsing function if its not optdepends. To look for the next
    array, we then just advance 1 character past the previously found end.
  6. depends: add header guards

  7. depends: refactor bash array parsing.

    use strtok instead of strsep because it will consider multiple
    successive delimeters to be a single delimeter.
    use strcspn to find the length of the string containing valid characters
    up to the first found reject character. Using this length, replace the first
    reject character with a '\0'. this replaces the kludgy for loop that iterated
    over each character, calling strchr on each iteration.
Something went wrong with that request. Please try again.