Skip to content

Commit

Permalink
Don't always call mkdir(CACHEPATH) on run
Browse files Browse the repository at this point in the history
This should be created on make install. Just assume it exists.
  • Loading branch information
falconindy committed Sep 9, 2012
1 parent dc1f698 commit a11153a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pkgfile.c
Expand Up @@ -671,11 +671,6 @@ int main(int argc, char *argv[])
return 2;
}

if(mkdir(CACHEPATH, 0755) != 0 && errno != EEXIST) {
fprintf(stderr, "error: failed to create cachedir: " CACHEPATH ": %s\n", strerror(errno));
return 2;
}

repos = find_active_repos(PACMANCONFIG, &repocount);
if(!repocount) {
fprintf(stderr, "error: no repos found in " PACMANCONFIG "\n");
Expand Down

0 comments on commit a11153a

Please sign in to comment.