diff -Nru libjs-chosen-0.9.15/debian/changelog libjs-chosen-0.9.15/debian/changelog --- libjs-chosen-0.9.15/debian/changelog 2016-12-19 15:25:12.000000000 +0000 +++ libjs-chosen-0.9.15/debian/changelog 2017-01-04 13:13:39.000000000 +0000 @@ -1,3 +1,12 @@ +libjs-chosen (0.9.15-2) unstable; urgency=medium + + * QA upload. + * Remove build-dependency on node-temp package. + Modify Made-compression-work-with-uglify-js2.patch to not use the + node-temp package. + + -- Ilias Tsitsimpis Wed, 04 Jan 2017 15:13:39 +0200 + libjs-chosen (0.9.15-1) unstable; urgency=medium [ Gianfranco Costamagna ] diff -Nru libjs-chosen-0.9.15/debian/control libjs-chosen-0.9.15/debian/control --- libjs-chosen-0.9.15/debian/control 2016-12-19 15:25:12.000000000 +0000 +++ libjs-chosen-0.9.15/debian/control 2017-01-04 13:11:38.000000000 +0000 @@ -2,7 +2,7 @@ Section: web Priority: optional Maintainer: Debian QA Group -Build-Depends: coffeescript, debhelper (>= 10), node-uglify (>= 2), node-temp +Build-Depends: coffeescript, debhelper (>= 10), node-uglify (>= 2) Standards-Version: 3.9.8 Homepage: http://harvesthq.github.io/chosen/ Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/libjs-chosen.git diff -Nru libjs-chosen-0.9.15/debian/patches/Made-compression-work-with-uglify-js2.patch libjs-chosen-0.9.15/debian/patches/Made-compression-work-with-uglify-js2.patch --- libjs-chosen-0.9.15/debian/patches/Made-compression-work-with-uglify-js2.patch 2016-12-19 15:25:12.000000000 +0000 +++ libjs-chosen-0.9.15/debian/patches/Made-compression-work-with-uglify-js2.patch 2017-01-04 13:11:24.000000000 +0000 @@ -16,7 +16,7 @@ javascripts = { 'chosen/chosen.jquery.js': [ -@@ -74,15 +74,22 @@ task 'build', 'build Chosen from source' +@@ -74,15 +74,20 @@ task 'build', 'build Chosen from source' code += CoffeeScript.compile file_contents write_chosen_javascript javascript, code unless process.env.MINIFY is 'false' @@ -31,13 +31,11 @@ print_error e, file_name, file_contents +compressFileV2 = (file, data) -> -+ require('temp').open {suffix: '.js'}, (err, info) -> -+ throw err if err? -+ fs.write info.fd, data -+ fs.close info.fd, (err) -> -+ throw err if err? -+ out = minify info.path -+ write_chosen_javascript file, out.code, ';' ++ tmpfile = "#{file}.tmp" ++ fs.writeFileSync tmpfile, data ++ out = minify tmpfile ++ fs.unlinkSync tmpfile ++ write_chosen_javascript file, out.code, ';' + task 'watch', 'watch coffee/ for changes and build Chosen', -> console.log "Watching for changes in coffee/"