3 @@ -101,6 +101,8 @@ static struct option long_options[] = {
4 {"test", 0, 0, ARGS_OPT_NOACTION},
5 {"tmp-dir", 1, 0, 't'},
6 {"tmp_dir", 1, 0, 't'},
7 + {"lists-dir", 1, 0, 'l'},
8 + {"lists_dir", 1, 0, 'l'},
9 {"verbosity", 2, 0, 'V'},
10 {"version", 0, 0, 'v'},
12 @@ -115,7 +117,7 @@ args_parse(int argc, char *argv[])
16 - c = getopt_long_only(argc, argv, "Ad:f:ino:p:t:vV::",
17 + c = getopt_long_only(argc, argv, "Ad:f:ino:p:l:t:vV::",
18 long_options, &option_index);
21 @@ -139,6 +141,9 @@ args_parse(int argc, char *argv[])
23 conf->tmp_dir = xstrdup(optarg);
26 + conf->lists_dir = xstrdup(optarg);
29 printf("opkg version %s\n", VERSION);
31 @@ -316,6 +321,8 @@ usage()
32 printf("\t automatically to satisfy dependencies\n");
33 printf("\t-t Specify tmp-dir.\n");
34 printf("\t--tmp-dir Specify tmp-dir.\n");
35 + printf("\t-l Specify lists-dir.\n");
36 + printf("\t--lists-dir Specify lists-dir.\n");