librazor/root.c
changeset 258 29d5002bd17f
parent 248 057933050c42
child 259 5b0601d184ed
     1.1 --- a/librazor/root.c	Fri Jun 20 15:10:34 2008 -0400
     1.2 +++ b/librazor/root.c	Fri Jun 20 19:04:47 2008 -0400
     1.3 @@ -58,7 +58,7 @@
     1.4  			"a razor install root is already initialized\n");
     1.5  		return -1;
     1.6  	}
     1.7 -	if (razor_set_write(set, path) < 0) {
     1.8 +	if (razor_set_write(set, path, RAZOR_REPO_FILE_MAIN) < 0) {
     1.9  		fprintf(stderr, "could not write initial package set\n");
    1.10  		return -1;
    1.11  	}
    1.12 @@ -139,7 +139,7 @@
    1.13  void
    1.14  razor_root_update(struct razor_root *root, struct razor_set *next)
    1.15  {
    1.16 -	razor_set_write_to_fd(next, root->fd);
    1.17 +	razor_set_write_to_fd(next, root->fd, RAZOR_REPO_FILE_MAIN);
    1.18  	root->next = next;
    1.19  
    1.20  	/* Sync the new repo file so the new package set is on disk