diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-14 08:16:18 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-14 08:16:18 -0500 |
commit | a33424f87955c43652a61fcef5817df07e17bee3 (patch) | |
tree | 2688165e953384b89d472dc887c876bd88306223 /src | |
parent | dbd54c0cb95c5d9c914e5d99b23556d2528ee9b9 (diff) | |
parent | 020bdb4298cd1bc53df7ca4d911cda7aaa65329c (diff) |
Merge branch 'maint'
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index 2696451e..3f52500d 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -1043,19 +1043,19 @@ void print_packages(const alpm_list_t *packages) char *string = strdup(config->print_format); char *temp = string; /* %n : pkgname */ - if(strstr(temp,"%n")) { + if(strstr(temp, "%n")) { string = strreplace(temp, "%n", alpm_pkg_get_name(pkg)); free(temp); temp = string; } /* %v : pkgver */ - if(strstr(temp,"%v")) { + if(strstr(temp, "%v")) { string = strreplace(temp, "%v", alpm_pkg_get_version(pkg)); free(temp); temp = string; } /* %l : location */ - if(strstr(temp,"%l")) { + if(strstr(temp, "%l")) { char *pkgloc = pkg_get_location(pkg); string = strreplace(temp, "%l", pkgloc); free(pkgloc); @@ -1063,7 +1063,7 @@ void print_packages(const alpm_list_t *packages) temp = string; } /* %r : repo */ - if(strstr(temp,"%r")) { + if(strstr(temp, "%r")) { const char *repo = "local"; alpm_db_t *db = alpm_pkg_get_db(pkg); if(db) { @@ -1074,7 +1074,7 @@ void print_packages(const alpm_list_t *packages) temp = string; } /* %s : size */ - if(strstr(temp,"%s")) { + if(strstr(temp, "%s")) { char *size; pm_asprintf(&size, "%jd", (intmax_t)pkg_get_size(pkg)); string = strreplace(temp, "%s", size); |