Permalink
Commits on May 22, 2010
  1. merge branch colorcfg

    committed May 22, 2010
  2. doc: fixup missing emphasis

    committed May 22, 2010
  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
    committed May 22, 2010
  4. util: convert remainder of colored output to use config->colors rathe…

    …r than hardcoded colorings
    committed May 22, 2010
  5. conf: nest color_cfg_t struct in config and create a default color sc…

    …heme at initialization
    committed May 22, 2010
  6. 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.
    committed May 22, 2010
  7. directly access alpm_list struct members rather than using alpm_list_…

    …next and alpm_list_getdata
    committed May 22, 2010
  8. 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
    committed May 22, 2010
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
    committed May 21, 2010
  2. download: add curl error checking for proper curl response and http r…

    …esponse code. should have added this ages ago
    committed May 21, 2010
  3. doc: remove old POD page

    committed May 21, 2010
  4. makefile: cosmetic change. build output should uniformly show the out…

    …put of the operation, not the input
    committed May 21, 2010
  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.
    committed May 21, 2010
  6. depends: add header guards

    committed May 21, 2010
  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.
    committed May 21, 2010