[arch-commits] Commit in atom/trunk (PKGBUILD autocomplete-plus.patch)

Nicola Squartini tensor5 at archlinux.org
Fri Aug 12 14:48:25 UTC 2016


    Date: Friday, August 12, 2016 @ 14:48:24
  Author: tensor5
Revision: 186644

upgpkg: atom 1.9.8-2

Fix autocomplete-plus TypeError

Added:
  atom/trunk/autocomplete-plus.patch
Modified:
  atom/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |    7 ++++++-
 autocomplete-plus.patch |   11 +++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-12 14:46:56 UTC (rev 186643)
+++ PKGBUILD	2016-08-12 14:48:24 UTC (rev 186644)
@@ -3,7 +3,7 @@
 
 pkgname=atom
 pkgver=1.9.8
-pkgrel=1
+pkgrel=2
 pkgdesc='A hackable text editor for the 21st Century'
 arch=('i686' 'x86_64')
 url='https://github.com/atom/atom'
@@ -12,6 +12,7 @@
          'electron')
 makedepends=('git' 'npm')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/atom/archive/v${pkgver}.tar.gz"
+        'autocomplete-plus.patch'
         'beforeunload.patch'
         'deprecated-api.patch'
         'fix-atom-sh.patch'
@@ -23,6 +24,7 @@
         'use-system-apm.patch'
         'use-system-electron.patch')
 sha256sums=('148c6dc162f51f438fc8385f0b6b6b4f19dc554c13a8edf2ec3826b5c164b466'
+            '58198d214edc434580c5764f749e26fb686d77c3c983d01f247f48aec84eb1a4'
             'e92e23bbf839bec6611b2ac76c1f5bba35b476983b0faa9b310288e2956247a2'
             '6fca91b3e80248a96fc4b6b0228602d4dd68ef851cb059a97a7379e72e53b432'
             'd3eb239f53feb3181fb4d57d2db391d7b31ce2188c5bd5b79d9ed3133351cd90'
@@ -60,6 +62,9 @@
   apm install
 
   # Fix for Node 6
+  cd node_modules/autocomplete-plus
+  patch -Np1 -i "${srcdir}"/autocomplete-plus.patch
+  cd ../..
   cd node_modules/tree-view
   patch -Np1 -i "${srcdir}"/tree-view.patch
   cd ../..

Added: autocomplete-plus.patch
===================================================================
--- autocomplete-plus.patch	                        (rev 0)
+++ autocomplete-plus.patch	2016-08-12 14:48:24 UTC (rev 186644)
@@ -0,0 +1,11 @@
+--- a/lib/autocomplete-manager.coffee
++++ b/lib/autocomplete-manager.coffee
+@@ -441,7 +441,7 @@ class AutocompleteManager
+       return @isCurrentFileBlackListedCache
+ 
+     minimatch ?= require('minimatch')
+-    fileName = path.basename(@buffer.getPath())
++    fileName = path.basename(@buffer.getPath() or '')
+     for blacklistGlob in @fileBlacklist
+       if minimatch(fileName, blacklistGlob)
+         @isCurrentFileBlackListedCache = true



More information about the arch-commits mailing list