src/rpm.c
changeset 425 0c8bdd8dc942
parent 424 8cbc438cc298
child 426 2e896ad9754b
     1.1 --- a/src/rpm.c	Thu Feb 16 17:33:47 2012 +0000
     1.2 +++ b/src/rpm.c	Thu Feb 16 17:44:25 2012 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * Copyright (C) 2008  Kristian Høgsberg <krh@redhat.com>
     1.6   * Copyright (C) 2008  Red Hat, Inc
     1.7 - * Copyright (C) 2009, 2011  J. Ali Harlow <ali@juiblex.co.uk>
     1.8 + * Copyright (C) 2009, 2011, 2012  J. Ali Harlow <ali@juiblex.co.uk>
     1.9   *
    1.10   * This program is free software; you can redistribute it and/or modify
    1.11   * it under the terms of the GNU General Public License as published by
    1.12 @@ -253,7 +253,13 @@
    1.13  static void
    1.14  command_initdb(int argc, const char *argv[])
    1.15  {
    1.16 -	razor_root_create(option_root);
    1.17 +	struct razor_error *error = NULL;
    1.18 +
    1.19 +	if (razor_root_create(option_root, &error)) {
    1.20 +		fprintf(stderr, "%s\n", razor_error_get_msg(error));
    1.21 +		razor_error_free(error);
    1.22 +	} else
    1.23 +		printf("Created install root\n");
    1.24  }
    1.25  
    1.26  static struct razor_property *