summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-16fix new db-syncParabola
2014-01-15db-update: add shopt -s nullglob and remove mail script to ↵André Fabian Silva Delgado
maintenance@lists.parabolagnulinux.org because it's unstable
2014-01-15revert to old db-sync until fix it, rename lastest db-sync to db-sync.origAndré Fabian Silva Delgado
2014-01-11modification on db-update for mailaurelien
2014-01-08remove unused variables from local_configLuke Shumaker
2014-01-08Avoid using $(basename $var) , use ${var##*/} insteadLuke Shumaker
2014-01-08db-sync: use tab indentLuke Shumaker
2014-01-08Fix some array quoting.Luke Shumaker
2014-01-08Normalize to load config then local_config then db-functionsLuke Shumaker
2014-01-08fix comments, indentationLuke Shumaker
2014-01-08Get rid of $ARCH_BASE; these days it is the same as $FTP_BASELuke Shumaker
2014-01-08Be very careful about using $0.Luke Shumaker
2014-01-08Remove extra local_config loads.Luke Shumaker
Some files were loading local_config even if they did not use any settings from it.
2014-01-08Fix quoting on arrays.Luke Shumaker
2014-01-08Use `mktemp -t` to respect $TMPDIRLuke Shumaker
2014-01-08misc touch upLuke Shumaker
- TODO: add trailing newline - config: add text editor hint - config.orig: remove - getrepos: quote, use -- - db-functions: hardcode some paths, remove needless nullglob
2014-01-08rm repo-remove -- in Oct 2012 fauno removed repo-add, but left thisLuke Shumaker
The customized repo-{add,remove} did license extraction for packages. They were based on the versions from pacman 3.5.0 Here is a diff between the stock versions from 3.5.0, and the modified version that we had: --- repo-add.sh.in 2013-12-31 18:02:13.546351038 -0500 +++ repo-remove.in 2013-12-31 18:13:19.957948677 -0500 @@ -20,6 +20,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +LICENSESDIR=/home/parabolavnx/licenses + # gettext initialization export TEXTDOMAIN='pacman' export TEXTDOMAINDIR='@localedir@' @@ -309,6 +311,22 @@ fi fi + # Extracts licenses to a common license dir + msg "Extracting license" + if bsdtar -xOf ${pkgfile} .PKGINFO | grep "license" | grep "custom" ; then + if [ -d ${LICENSESDIR}/${pkgname} ]; then + rm -r ${LICENSESDIR}/${pkgname} + fi + + # Change dir to licenses, and extract them stripping the first part of the path + bsdtar -C ${LICENSESDIR}/ --include="usr/share/licenses/" \ + --strip-components 3 -xf ${pkgfile} >/dev/null 2>&1 + + if [ $? -ne 0 ]; then + warning "This package doesn't contain a license dir" + fi + fi + return 0 } # end db_write_entry @@ -328,6 +346,12 @@ rm -rf $pkgentry pkgentry=$(find_pkgentry $pkgname) done + + msg "Removing license" + if [ -d ${LICENSESDIR}/${pkgname} ]; then + rm -r ${LICENSESDIR}/${pkgname} + fi + return $notfound } # end db_remove_entry
2014-01-08repo-sanity-check: take advantage of printfLuke Shumaker
2014-01-08fix local_config:mirrorpath for the selected mirrorLuke Shumaker
2014-01-08Fix some array quoting.Luke Shumaker
2014-01-08Normalize to load ./config before loading ./db-functionsLuke Shumaker
2014-01-08db-functions: use ${array[*]} when appropriateLuke Shumaker
2014-01-08createrepos: fix quotingLuke Shumaker
2014-01-08config: fix typoLuke Shumaker
2014-01-08Merge branch 'master' into cleanupLuke Shumaker
Conflicts: db-remove db-update local_config
2014-01-08db-update: remove 'other' from repo blacklist now that issue #460 is addedLuke Shumaker
2014-01-08Don't error about permissions on empty staging repos (feature #460)Parabola
2014-01-06fix thingsParabola
2014-01-04Merge branch 'repo'Luke Shumaker
2014-01-05go ahead and track local_configParabola
2014-01-05db-update: add hook for publishing generated sourcesParabola
2014-01-05fix use of $0 in db-cleanupParabola
2014-01-01go ahead and track local_configLuke Shumaker
2014-01-01local_config.example: update to reflect what is on repoLuke Shumaker
2014-01-01rm repo-remove -- in Oct 2012 fauno removed repo-add, but left thisLuke Shumaker
The customized repo-{add,remove} did license extraction for packages. They were based on the versions from pacman 3.5.0 Here is a diff between the stock versions from 3.5.0, and the modified version that we had: --- repo-add.sh.in 2013-12-31 18:02:13.546351038 -0500 +++ repo-remove.in 2013-12-31 18:13:19.957948677 -0500 @@ -20,6 +20,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +LICENSESDIR=/home/parabolavnx/licenses + # gettext initialization export TEXTDOMAIN='pacman' export TEXTDOMAINDIR='@localedir@' @@ -309,6 +311,22 @@ fi fi + # Extracts licenses to a common license dir + msg "Extracting license" + if bsdtar -xOf ${pkgfile} .PKGINFO | grep "license" | grep "custom" ; then + if [ -d ${LICENSESDIR}/${pkgname} ]; then + rm -r ${LICENSESDIR}/${pkgname} + fi + + # Change dir to licenses, and extract them stripping the first part of the path + bsdtar -C ${LICENSESDIR}/ --include="usr/share/licenses/" \ + --strip-components 3 -xf ${pkgfile} >/dev/null 2>&1 + + if [ $? -ne 0 ]; then + warning "This package doesn't contain a license dir" + fi + fi + return 0 } # end db_write_entry @@ -328,6 +346,12 @@ rm -rf $pkgentry pkgentry=$(find_pkgentry $pkgname) done + + msg "Removing license" + if [ -d ${LICENSESDIR}/${pkgname} ]; then + rm -r ${LICENSESDIR}/${pkgname} + fi + return $notfound } # end db_remove_entry
2014-01-01use ${0##*/} instead of basename in "usage:" textLuke Shumaker
2014-01-01get-repos: clean up temp directory handlingLuke Shumaker
- rename $TMPDIR to $WORKDIR - respect environmental $TMPDIR - use a trap to clean up,instead of a command at the end
2014-01-01remove unnecessary loadings of local_configLuke Shumaker
2014-01-01local_config.example: remove unused variables, update commentsLuke Shumaker
2013-12-31use `readlink -e` on $0Luke Shumaker
2013-12-31db-sync: use mktemp/trapLuke Shumaker
2013-12-31db-sync: use tab indentLuke Shumaker
2013-12-31get rid of $ARCH_BASELuke Shumaker
2013-12-31clean upLuke Shumaker
2013-12-31Merge branch 'cleanup' into master-mergeLuke Shumaker
Conflicts: config cron-jobs/sourceballs db-functions db-move db-remove db-update
2013-12-31db-import.conf: add {gnome,kde}-unstable staging reposLuke Shumaker
2013-12-31clean up db-importLuke Shumaker
2013-12-31db-import: run `readlink -e` on $0Luke Shumaker
2013-12-31Merge branch 'cleanup4' into db-import2Luke Shumaker
2013-12-31`readlink -e` all "$0"sLuke Shumaker