@@ -206,38 +211,50 @@ int main(int argc, char *argv[])
}
- if (!directory || !versions.kernel || !versions.anaconda) {
- if (!path || !versions.kernel || !versions.anaconda) { show_help(); rc = 1; goto cleanup; }
if (verbose) {
printf("Listing DD dir %s\n", directory);
}
init_rpm();
char *globpattern;
checked_asprintf(&globpattern, "%s/*.rpm", directory);
- path_len = strlen(path);
- glob_t globres;
- char** globitem;
- /* determine if the path is rpm filename or directory */
- if ((path_len > 5) && (strcmp(path + path_len - 4, ".rpm") == 0)) {
I think this blank line could be removed.
anaconda-patches@lists.fedorahosted.org