diff options
author | Brenton Earl <brent@exitstatusone.com> | 2015-11-18 23:39:30 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-18 23:39:30 +0700 |
commit | 2c54e81a6809eb7924c96bb3e6529fa7f9fb501c (patch) | |
tree | 3d05c84f74cee3549cd69c38151eee9b6a43e54e /python/python-vulndb/do-not-commit-vulndb-to-upstream.diff | |
parent | 3a9223ebd38411f409c039f09b55792253c25c6b (diff) | |
download | slackbuilds-2c54e81a6809eb7924c96bb3e6529fa7f9fb501c.tar.gz |
python/python-vulndb: Added (vulndb Python SDK).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-vulndb/do-not-commit-vulndb-to-upstream.diff')
-rw-r--r-- | python/python-vulndb/do-not-commit-vulndb-to-upstream.diff | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/python/python-vulndb/do-not-commit-vulndb-to-upstream.diff b/python/python-vulndb/do-not-commit-vulndb-to-upstream.diff new file mode 100644 index 0000000000..6fb65be81e --- /dev/null +++ b/python/python-vulndb/do-not-commit-vulndb-to-upstream.diff @@ -0,0 +1,38 @@ + +Removes git commits to vulndb since it seems to be broken +Tracks vulndb repository in /tmp/vulndb_data + +--- vulndb-0.0.19.orig/tools/update-db.sh 2015-11-17 22:47:34.506772912 -0700 ++++ vulndb-0.0.19/tools/update-db.sh 2015-11-17 22:54:12.818745899 -0700 +@@ -5,25 +5,13 @@ + # + # Update the database + # +-if [ ! -d "data" ]; then +- git clone https://github.com/vulndb/data.git ++ ++if [ ! -d "/tmp/vulndb_data" ]; then ++ git clone https://github.com/vulndb/data.git /tmp/vulndb_data + fi + +-cd data ++cd /tmp/vulndb_data + git pull + cd .. + +-mkdir -p vulndb/db/ +-cp -rf data/db/*.json vulndb/db/ +-git add vulndb/db/ +- +-# Bump the version numbers +-tools/semver.sh bump patch +- +-cd data +-git rev-parse HEAD > ../vulndb/db-version.txt +-cd .. +- +-# Push to repo +-git commit vulndb/db/ vulndb/version.txt vulndb/db-version.txt -m 'Updated vulnerability database' +-git push +\ No newline at end of file ++cp -rf /tmp/vulndb_data/db/*.json /usr/lib64/python2.7/site-packages/vulndb/db/ |