Skip to content

Commit 63491bc

Browse files
committed
Drop undocumented old cruft from the tools code
This is mainly the -b and -n options, which were used to test solv extension files in the long ago past.
1 parent 5cf5c51 commit 63491bc

19 files changed

Lines changed: 54 additions & 490 deletions

tools/appdata2solv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ main(int argc, char **argv)
7070
exit(1);
7171
}
7272
}
73-
tool_write(repo, 0, 0);
73+
tool_write(repo, stdout);
7474
pool_free(pool);
7575
exit(0);
7676
}

tools/archpkgs2solv.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ main(int argc, char **argv)
5757
Repo *repo;
5858
FILE *fp;
5959
char buf[4096], *p;
60-
const char *basefile = 0;
6160
int flags = 0;
6261

63-
while ((c = getopt(argc, argv, "0b:m:i")) >= 0)
62+
while ((c = getopt(argc, argv, "0:m:i")) >= 0)
6463
{
6564
switch(c)
6665
{
67-
case 'b':
68-
basefile = optarg;
69-
break;
7066
case 'm':
7167
manifest = optarg;
7268
break;
@@ -124,7 +120,7 @@ main(int argc, char **argv)
124120
res = 1;
125121
}
126122
repo_internalize(repo);
127-
tool_write(repo, basefile, 0);
123+
tool_write(repo, stdout);
128124
pool_free(pool);
129125
for (c = 0; c < npkgs; c++)
130126
solv_free((char *)pkgs[c]);

tools/archrepo2solv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ main(int argc, char **argv)
7373
fprintf(stderr, "archrepo2solv: %s\n", pool_errstr(pool));
7474
exit(1);
7575
}
76-
tool_write(repo, 0, 0);
76+
tool_write(repo, stdout);
7777
pool_free(pool);
7878
exit(0);
7979
}

0 commit comments

Comments
 (0)