Mailinglist Archive: opensuse-buildservice (213 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] obs_mirror_project: skip -debuginfo and -debugsource packages
  • From: Daniel Gollub <gollub@xxxxxxxxxxxxx>
  • Date: Tue, 2 Jun 2009 16:37:41 +0200
  • Message-id: <200906021637.42382.gollub@xxxxxxxxxxxxx>
Hi,

attachted patch skips debug packages, which are not required as base
build distro.

Best Regards,
Daniel

---

Index: dist/obs_mirror_project
===================================================================
--- dist/obs_mirror_project (revision 7471)
+++ dist/obs_mirror_project (working copy)
@@ -63,6 +63,12 @@
# skip src and nosrc rpms
inform_user_about_hacky_reget=false
unless fname[-7..-1] == "src.rpm"
+ # skip debuginfo and debugsource packages
+ if fname.include? "-debuginfo" or fname.include? "-debugsource"
+ puts "Debug package #{fname} - skip."
+ next
+ end
+
if File.file?("#{destinationdir}/#{fname}")

puts "package #{destinationdir}/#{fname} already exists."

--
Daniel Gollub Geschaeftsfuehrer: Ralph Dehner
FOSS Developer Unternehmenssitz: Vohburg
B1 Systems GmbH Amtsgericht: Ingolstadt
Mobil: +49-(0)-160 47 73 970 Handelsregister: HRB 3537
EMail: gollub@xxxxxxxxxxxxx http://www.b1-systems.de

Adresse: B1 Systems GmbH, Osterfeldstraße 7, 85088 Vohburg
http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0xED14B95C2F8CA78D
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups