Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=c2acb10512fbe62c7331c2655c641b98db6d404c

commit c2acb10512fbe62c7331c2655c641b98db6d404c
Author: CSÉCSY László <boo...@frugalware.org>
Date:   Fri Jan 14 10:47:42 2011 +0100

drush-4.1-1-x86_64
version bump
up2date fix
updated patch

diff --git a/source/devel-extra/drush/FrugalBuild 
b/source/devel-extra/drush/FrugalBuild
index b13edf1..e24d3d5 100644
--- a/source/devel-extra/drush/FrugalBuild
+++ b/source/devel-extra/drush/FrugalBuild
@@ -2,17 +2,17 @@
# Maintainer: CSÉCSY László <boo...@frugalware.org>

pkgname=drush
-pkgver=6.x_3.3
+pkgver=4.1
pkgrel=1
pkgdesc="A command line shell and Unix scripting interface for Drupal"
url="http://drupal.org/project/drush";
rodepends=('php-pear-console_table')
groups=('devel-extra')
archs=('i686' 'x86_64')
-up2date="lynx -dump http://drupal.org/project/drush | grep -i drush.*tar.gz 
-m1 | sed 's/.*drush-\(.*\)\.tar.*/\1/;y/-/_/'"
-source=(http://ftp.drupal.org/files/projects/$pkgname-${pkgver//_/-}.tar.gz 
drush-chown-after-untar2.patch)
-sha1sums=('e3ebc58153c502ff185f3a61d38729db8329f9e3' \
-          'e28972464102755cebb7938f8543ba06bfd06be6')
+up2date="lynx -dump http://drupal.org/project/drush | grep -i drush.*tar.gz 
-m1 | sed 's/.*versions-\(.*\)\.tar.*/\1/;y/-/_/'"
+source=(http://ftp.drupal.org/files/projects/$pkgname-All-versions-${pkgver//_/-}.tar.gz
 drush-chown-after-untar2.patch)
+sha1sums=('a156bc15faf2d3ce1661414b1f5c1dec3d72e480' \
+          '65b008d167cdbc320873a45efc78399824f8eb02')
_F_cd_path=$pkgname

build()
diff --git a/source/devel-extra/drush/drush-chown-after-untar2.patch 
b/source/devel-extra/drush/drush-chown-after-untar2.patch
index 5175a4a..13d7f93 100644
--- a/source/devel-extra/drush/drush-chown-after-untar2.patch
+++ b/source/devel-extra/drush/drush-chown-after-untar2.patch
@@ -1,13 +1,12 @@
-diff --git a/commands/pm/package_handler/wget.inc 
b/commands/pm/package_handler/wget.inc
-index c9be664..cf9a695 100644
---- a/commands/pm/package_handler/wget.inc
-+++ b/commands/pm/package_handler/wget.inc
-@@ -53,6 +53,8 @@ function package_handler_install_project(&$project, 
$release) {
+diff -Naur drush-orig/commands/pm/package_handler/wget.inc 
drush/commands/pm/package_handler/wget.inc
+--- drush-orig/commands/pm/package_handler/wget.inc    2010-12-24 
22:42:05.000000000 +0100
++++ drush/commands/pm/package_handler/wget.inc 2011-01-14 10:36:44.815000636 
+0100
+@@ -83,6 +83,8 @@
+   $tarpath = basename($tarpath, '.tgz');
+   $tarpath .= '.tar';
+   drush_shell_exec("tar -xf %s", $tarpath);
++  $buf = stat($olddir);
++  drush_shell_exec("chown -R %s:%s .", $buf["uid"], $buf["gid"]);

-   // Untar
-   drush_shell_exec("tar -xf $tarpath");
-+  $buf = stat(".");
-+  drush_shell_exec("chown -R ". $buf["uid"] .":". $buf["gid"] ." .");
-   // We're not using tar -xzf because that's not working on windows...
-
-   // Handle the dodgy directory used by the drupal project' packaging script.
+   // Move untarred directory to project_dir, if distinct.
+   if (($request['project_type'] == 'core') || (($request['project_type'] == 
'profile') && (drush_get_option('variant', 'core') == 'core'))) {
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to