Skip to content

Commit 1f6231b

Browse files
committed
Fix upgrade argument handling
1 parent adea826 commit 1f6231b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rman_dl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct Main {
128128

129129
cli.manifest = program.get<std::string>("manifest");
130130
cli.output = program.get<std::string>("output");
131-
cli.updatefrommanfiest = program.get<std::string>("--upgrade");
131+
cli.updatefrommanfiest = program.get<std::string>("--update");
132132

133133
cli.no_verify = program.get<bool>("--no-verify");
134134
cli.no_write = program.get<bool>("--no-write");
@@ -181,7 +181,7 @@ struct Main {
181181
cdn = std::make_unique<RCDN>(cli.cdn, cache.get());
182182

183183
auto skipids = std::unordered_map<std::string, FileID>{};
184-
{
184+
if (!cli.updatefrommanfiest.empty()) {
185185
rlib_trace("Update from file: %s", cli.updatefrommanfiest.c_str());
186186
RFile::read_file(cli.updatefrommanfiest, [&, this](RFile const& rfile) {
187187
if (cli.match(rfile)) {

0 commit comments

Comments
 (0)