diff options
-rw-r--r-- | src/luarocks/new_version.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/luarocks/new_version.lua b/src/luarocks/new_version.lua index e5469295..73accf1e 100644 --- a/src/luarocks/new_version.lua +++ b/src/luarocks/new_version.lua | |||
@@ -77,9 +77,6 @@ local function update_source_section(out_rs, out_name, url, old_ver, new_ver) | |||
77 | if new_ver == old_ver then | 77 | if new_ver == old_ver then |
78 | return true | 78 | return true |
79 | end | 79 | end |
80 | if not out_rs.source then | ||
81 | return nil, "'source' table is missing. Invalid rockspec?" | ||
82 | end | ||
83 | if out_rs.source.dir then | 80 | if out_rs.source.dir then |
84 | try_replace(out_rs.source, "dir", old_ver, new_ver) | 81 | try_replace(out_rs.source, "dir", old_ver, new_ver) |
85 | end | 82 | end |