Mailinglist Archive: yast-commit (2113 mails)

< Previous Next >
[yast-commit] <rest-service> master : removing old stuff before creating packages
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Wed, 30 Sep 2009 13:15:40 +0200
  • Message-id: <E1Msx9z-000248-Ok@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 95f23e2e1249c3bc87bc0ae74ed4517853a28068
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Wed Sep 30 13:15:40 2009 +0200

removing old stuff before creating packages
---
webservice-tasks/lib/tasks/package-local.rake | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/webservice-tasks/lib/tasks/package-local.rake
b/webservice-tasks/lib/tasks/package-local.rake
index f9d1b84..40ed589 100644
--- a/webservice-tasks/lib/tasks/package-local.rake
+++ b/webservice-tasks/lib/tasks/package-local.rake
@@ -1,6 +1,7 @@

require 'rake'
require 'rake/packagetask'
+require 'fileutils'

require "#{File.dirname(__FILE__)}/rake_rename_task"

@@ -13,6 +14,11 @@ if Rake::Task.task_defined?(:package)
end

# create new package task
+
+#removing old stuff
+www_dir = File.join(Dir.pwd,"package", "www")
+FileUtils.rm_rf(www_dir) if File.directory?(www_dir)
+
Rake::PackageTask.new('www', :noversion) do |p|
p.need_tar_bz2 = true
p.package_dir = 'package'
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages