Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package asar for openSUSE:Factory checked in at 2023-09-26 22:02:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/asar (Old) and /work/SRC/openSUSE:Factory/.asar.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "asar" Tue Sep 26 22:02:31 2023 rev:5 rq:1113637 version:3.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/asar/asar.changes 2023-09-21 22:14:26.682130787 +0200 +++ /work/SRC/openSUSE:Factory/.asar.new.1770/asar.changes 2023-09-26 22:18:47.529540400 +0200 @@ -1,0 +2,6 @@ +Tue Sep 26 09:13:12 UTC 2023 - Bruno Pitrus <brunopit...@hotmail.com> + +- New upstream version 3.2.6 + * Don't overwrite existing folders + +------------------------------------------------------------------- Old: ---- v3.2.5.tar.gz New: ---- v3.2.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ asar.spec ++++++ --- /var/tmp/diff_new_pack.JMMglC/_old 2023-09-26 22:18:48.617579780 +0200 +++ /var/tmp/diff_new_pack.JMMglC/_new 2023-09-26 22:18:48.617579780 +0200 @@ -17,7 +17,7 @@ Name: asar -Version: 3.2.5 +Version: 3.2.6 Release: 0 Summary: Creating atom-shell (electron) app packages License: MIT and ISC ++++++ v3.2.5.tar.gz -> v3.2.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.5/lib/asar.js new/asar-3.2.6/lib/asar.js --- old/asar-3.2.5/lib/asar.js 2023-09-19 02:25:17.000000000 +0200 +++ new/asar-3.2.6/lib/asar.js 2023-09-26 07:58:07.000000000 +0200 @@ -180,6 +180,7 @@ // create destination directory fs.mkdirpSync(dest) + const extractionErrors = [] for (const fullPath of filenames) { // Remove leading slash const filename = fullPath.substr(1) @@ -200,14 +201,23 @@ const linkTo = path.join(relativePath, path.basename(file.link)) fs.symlinkSync(linkTo, destFilename) } else { - // it's a file, extract it - const content = disk.readFileSync(filesystem, filename, file) - fs.writeFileSync(destFilename, content) - if (file.executable) { - fs.chmodSync(destFilename, '755') + // it's a file, try to extract it + try { + const content = disk.readFileSync(filesystem, filename, file) + fs.writeFileSync(destFilename, content) + if (file.executable) { + fs.chmodSync(destFilename, '755') + } + } catch (e) { + extractionErrors.push(e) } } } + if (extractionErrors.length) { + throw new Error( + 'Unable to extract some files:\n\n' + + extractionErrors.map(error => error.stack).join('\n\n')) + } } module.exports.uncache = function (archive) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.5/lib/filesystem.js new/asar-3.2.6/lib/filesystem.js --- old/asar-3.2.5/lib/filesystem.js 2023-09-19 02:25:17.000000000 +0200 +++ new/asar-3.2.6/lib/filesystem.js 2023-09-26 07:58:07.000000000 +0200 @@ -51,7 +51,7 @@ if (shouldUnpack) { node.unpacked = shouldUnpack } - node.files = {} + node.files = node.files || {} return node.files }