xbps-checkvers: use xbps_repo_store

This commit is contained in:
Duncaen 2019-06-13 13:03:47 +02:00 committed by Duncan Overbruck
parent 260d21877f
commit abdd1047eb

View File

@ -738,10 +738,7 @@ main(int argc, char **argv)
rcv.manual = true;
break;
case 'R':
if (rcv.xhp.repositories == NULL)
rcv.xhp.repositories = xbps_array_create();
xbps_array_add_cstring_nocopy(rcv.xhp.repositories, optarg);
xbps_repo_store(&rcv.xhp, optarg);
break;
case 'r':
rcv.rootdir = strdup(optarg);