librazor/root.c
changeset 265 71b615b7c185
parent 250 ce5402017488
parent 258 29d5002bd17f
child 269 03fc85294bc9
     1.1 --- a/librazor/root.c	Fri Jun 20 18:26:46 2008 -0400
     1.2 +++ b/librazor/root.c	Mon Jun 23 14:07:07 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 @@ -138,7 +138,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