Hello community, here is the log from the commit of package ghc-hslua for openSUSE:Factory checked in at 2019-05-17 23:42:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old) and /work/SRC/openSUSE:Factory/.ghc-hslua.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hslua" Fri May 17 23:42:48 2019 rev:14 rq:703474 version:1.0.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes 2019-05-12 11:35:34.970253552 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.5148/ghc-hslua.changes 2019-05-17 23:42:50.825923234 +0200 @@ -1,0 +2,14 @@ +Thu May 9 02:01:19 UTC 2019 - psim...@suse.com + +- Update hslua to version 1.0.3.1. + ### 1.0.3.1 + + Released 2019-05-08. + + - Prevent filenames being treated as strings in debug messages. + Lua's `loadbuffer` takes a `source` description as an argument, + which is used for debug messages. The `loadfile` function now + adds a special prefix (`@`) to `source`, thus marking it as a + filename. + +------------------------------------------------------------------- Old: ---- hslua-1.0.3.tar.gz New: ---- hslua-1.0.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-hslua.spec ++++++ --- /var/tmp/diff_new_pack.safLFj/_old 2019-05-17 23:42:51.729922738 +0200 +++ /var/tmp/diff_new_pack.safLFj/_new 2019-05-17 23:42:51.733922735 +0200 @@ -19,7 +19,7 @@ %global pkg_name hslua %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.3 +Version: 1.0.3.1 Release: 0 Summary: Bindings to Lua, an embeddable scripting language License: MIT ++++++ hslua-1.0.3.tar.gz -> hslua-1.0.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-1.0.3/CHANGELOG.md new/hslua-1.0.3.1/CHANGELOG.md --- old/hslua-1.0.3/CHANGELOG.md 1970-01-01 01:00:00.000000000 +0100 +++ new/hslua-1.0.3.1/CHANGELOG.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +1,15 @@ ## Changelog +### 1.0.3.1 + +Released 2019-05-08. + +- Prevent filenames being treated as strings in debug messages. + Lua's `loadbuffer` takes a `source` description as an argument, + which is used for debug messages. The `loadfile` function now + adds a special prefix (`@`) to `source`, thus marking it as a + filename. + ### 1.0.3 Released 2019-05-04. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-1.0.3/hslua.cabal new/hslua-1.0.3.1/hslua.cabal --- old/hslua-1.0.3/hslua.cabal 1970-01-01 01:00:00.000000000 +0100 +++ new/hslua-1.0.3.1/hslua.cabal 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +1,5 @@ name: hslua -version: 1.0.3 +version: 1.0.3.1 synopsis: Bindings to Lua, an embeddable scripting language description: HsLua provides bindings, wrappers, types, and helper functions to bridge Haskell and <https://www.lua.org/ Lua>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-1.0.3/src/Foreign/Lua/Core/Auxiliary.hsc new/hslua-1.0.3.1/src/Foreign/Lua/Core/Auxiliary.hsc --- old/hslua-1.0.3/src/Foreign/Lua/Core/Auxiliary.hsc 1970-01-01 01:00:00.000000000 +0100 +++ new/hslua-1.0.3.1/src/Foreign/Lua/Core/Auxiliary.hsc 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +1,5 @@ {-# LANGUAGE CPP #-} +{-# LANGUAGE OverloadedStrings #-} {-| Module : Foreign.Lua.Core.Auxiliary Copyright : © 2007–2012 Gracjan Polak, @@ -35,6 +36,7 @@ import Control.Exception (IOException, try) import Data.ByteString (ByteString) +import Data.Monoid ((<>)) import Foreign.C ( CChar, CInt (CInt), CSize (CSize), CString , withCString, peekCString ) import Foreign.Lua.Core.Constants (multret, registryindex) @@ -182,7 +184,7 @@ loadfile :: FilePath -- ^ filename -> Lua Status loadfile fp = Lua.liftIO contentOrError >>= \case - Right script -> loadbuffer script fp + Right script -> loadbuffer script ("@" <> fp) Left e -> do Lua.pushstring (Utf8.fromString (show e)) return Lua.ErrFile