summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakesrc.sh6
-rw-r--r--php-bartlett-PHP-CompatInfo.spec5
2 files changed, 8 insertions, 3 deletions
diff --git a/makesrc.sh b/makesrc.sh
index 048f267..7ea4b27 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -14,14 +14,16 @@ git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
echo "Getting commit..."
pushd $PROJECT-$COMMIT
+ rm -rf ${HOME}/.cache/bartlett
git checkout $COMMIT || exit 1
cp composer.json ../
composer install --no-interaction --no-progress --no-dev --optimize-autoloader
cp vendor/composer/installed.json ../
- mkdir data
- cp ${HOME}/.cache/bartlett/compatinfo-db.sqlite data
+ bin/phpcompatinfo db:create
+ mkdir data
+ mv ${HOME}/.cache/bartlett/compatinfo-db.sqlite data
popd
echo "Archiving..."
diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec
index db85cfa..0a4fbfc 100644
--- a/php-bartlett-PHP-CompatInfo.spec
+++ b/php-bartlett-PHP-CompatInfo.spec
@@ -22,7 +22,7 @@
Name: php-bartlett-PHP-CompatInfo
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Find out version and the extensions required for a piece of code to run
License: BSD and MIT
@@ -191,6 +191,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-
%changelog
+* Wed Jan 26 2022 Remi Collet <remi@remirepo.net> - 6.1.1-4
+- properly create the database
+
* Tue Jan 25 2022 Remi Collet <remi@remirepo.net> - 6.1.1-3
- silent touch on read only database, reported as
https://github.com/llaville/php-compatinfo-db/issues/112