1172 if(!name) { |
1172 if(!name) { |
1173 fprintf(stderr, "Abort\n"); |
1173 fprintf(stderr, "Abort\n"); |
1174 return -1; |
1174 return -1; |
1175 } |
1175 } |
1176 if(get_repository(sstr(name))) { |
1176 if(get_repository(sstr(name))) { |
1177 fprintf(stderr, "Repository %s already exists.\nAbort\n"); |
1177 fprintf(stderr, "Repository %s already exists.\nAbort\n", name); |
1178 return -1; |
1178 return -1; |
1179 } |
1179 } |
1180 |
1180 |
1181 printf("\nSpecify the repository base url.\n"); |
1181 printf("\nSpecify the repository base url.\n"); |
1182 char *url = assistant_getcfg("url"); |
1182 char *url = assistant_getcfg("url"); |