]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
luasolv: delete debug line
authorMichael Schroeder <mls@suse.de>
Wed, 27 Mar 2024 13:05:11 +0000 (14:05 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 27 Mar 2024 13:05:11 +0000 (14:05 +0100)
examples/luasolv [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a2fe5ec..f906475
@@ -338,7 +338,6 @@ function Repo_rpmmd:load_ext(repodata)
   local filechksum = repodata:lookup_str(solv.SOLVID_META, solv.REPOSITORY_REPOMD_CHECKSUM)
   local f = self:download(filename, true, filechksum)
   if not f then
-print("download failed")
     return false
   end
   if ext == 'FL' then
@@ -458,7 +457,7 @@ if cmd == 'search' then
   os.exit(0)
 end
 
-if not cmdactions[cmd] then die("unknown command '"..cmd.."'") end
+if not cmdactions[cmd] then die(("unknown command '%s'"):format(cmd)) end
 
 pool:addfileprovides()
 pool:createwhatprovides()