Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
e496cddb
Commit
e496cddb
authored
Apr 17, 2020
by
Ed Reel
Committed by
GitHub
Apr 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update composer from 1.10.1 to 1.10.5 (#4014)
parent
c14180fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
packages/composer.rb
packages/composer.rb
+11
-11
No files found.
packages/composer.rb
View file @
e496cddb
...
...
@@ -3,20 +3,20 @@ require 'package'
class
Composer
<
Package
description
'Dependency Manager for PHP'
homepage
'https://getcomposer.org/'
version
'1.10.
1
'
source_url
'https://github.com/composer/composer/archive/1.10.
1
.tar.gz'
source_sha256
'
9d19d87a63a4927c20ed8e21dc2dd472eaf86deaf529917591557945464d5573
'
version
'1.10.
5
'
source_url
'https://github.com/composer/composer/archive/1.10.
5
.tar.gz'
source_sha256
'
241dcc3a51a1c81c4e124d55824cfb2cf69bbe824549329f88dd30262812cc36
'
depends_on
'php'
unless
File
.
exists?
"
#{
CREW_PREFIX
}
/bin/php"
depends_on
'php
74
'
unless
File
.
exists?
"
#{
CREW_PREFIX
}
/bin/php"
depends_on
'xdg_base'
def
self
.
preinstall
if
Dir
.
exists?
(
"
#{
HOME
}
/.config"
)
&&
!
File
.
symlink?
(
"
#{
HOME
}
/.config"
)
# Save any existing configuration
system
"cp -r
#{
HOME
}
/.config
#{
CREW_PREFIX
}
"
unless
Dir
.
empty?
"
#{
HOME
}
/.config"
FileUtils
.
cp_r
"
#{
HOME
}
/.config"
,
"
#{
CREW_PREFIX
}
"
unless
Dir
.
empty?
"
#{
HOME
}
/.config"
else
# Remove the symlink, if it exists
system
"rm -f
#{
HOME
}
/.config"
FileUtils
.
rm_f
"
#{
HOME
}
/.config"
end
end
...
...
@@ -24,12 +24,12 @@ class Composer < Package
system
"php -r
\"
copy('https://getcomposer.org/installer', 'composer-setup.php');
\"
"
system
'curl -Ls -o installer.sig https://composer.github.io/installer.sig'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA384
.
hexdigest
(
File
.
read
(
'composer-setup.php'
)
)
==
File
.
read
(
'installer.sig'
)
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
system
"php composer-setup.php --install-dir=
#{
CREW_DEST_PREFIX
}
/bin --filename=composer --version=
#{
version
}
"
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/.config"
system
"cp -r
#{
HOME
}
/.config/composer
#{
CREW_DEST_PREFIX
}
/.config"
system
"rm -rf
#{
HOME
}
/.config"
system
"ln -s
#{
CREW_PREFIX
}
/.config
#{
HOME
}
/.config"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/.config"
FileUtils
.
cp_r
"
#{
HOME
}
/.config/composer"
,
"
#{
CREW_DEST_PREFIX
}
/.config"
FileUtils
.
rm_rf
"
#{
HOME
}
/.config"
FileUtils
.
ln_s
"
#{
CREW_PREFIX
}
/.config"
,
"
#{
HOME
}
/.config"
end
def
self
.
postinstall
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment