Skip to content

Commit

Permalink
Add PM_TRANS_FLAG_NODEPVERSION and -dd command-line flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
juster committed Mar 26, 2011
1 parent eca91c8 commit 43a7b56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions clyde
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,20 @@ local longopts = {
config.op_q_changelog = true
end;
['d'] = function()
config.op_q_deps = true
config.flags["nodeps"] = true
config.op_g_get_deps = true
-- -d sets nodepver, -dd sets nodeps
-- ignore more than two, it would just confuse us...
if config.flags.nodeps then return end

if not config.flags.nodepver then
-- first time we see -d
config.op_q_deps = true
config.op_g_get_deps = true
config.flags.nodepver = true
else
-- second time
config.flags.nodepver = false
config.flags.nodeps = true
end
end;
['e'] = function() config.op_q_explicit = true end;
['f'] = function() config.flags["force"] = true end;
Expand Down
2 changes: 1 addition & 1 deletion lualpm/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static const char * trans_flag_names[] =
{ "nodeps",
"force",
"nosave",
"",
"nodepver",
"cascade",
"recurse",
"dbonly",
Expand Down

0 comments on commit 43a7b56

Please sign in to comment.