summaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-04-11 18:58:50 +0200
committerJudd Vinet <judd@archlinux.org>2003-04-11 18:58:50 +0200
commit37e13ea2d0c0df564f00278ac68bf8a1e584bfd9 (patch)
treed2e796dc32d5dc9da14af0b67d82e629f507f2fb /src/package.c
parent185ce5454e4afd11b1f90d7fe487b0ec3cb840c7 (diff)
downloadpacman-37e13ea2d0c0df564f00278ac68bf8a1e584bfd9.tar.gz
pacman-37e13ea2d0c0df564f00278ac68bf8a1e584bfd9.tar.xz
Imported from pacman-2.4.tar.gz
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/package.c b/src/package.c
index 1fd12c7a..6f41fc58 100644
--- a/src/package.c
+++ b/src/package.c
@@ -124,16 +124,13 @@ int parse_descfile(char *descfile, pkginfo_t *info, PMList **backup, int output)
while(!feof(fp)) {
fgets(line, PATH_MAX, fp);
- if(output) {
- printf("%s", line);
- }
linenum++;
trim(line);
- if(line[0] == '#') {
+ if(strlen(line) == 0 || line[0] == '#') {
continue;
}
- if(strlen(line) == 0) {
- continue;
+ if(output) {
+ printf("%s\n", line);
}
ptr = line;
key = strsep(&ptr, "=");