Code

Updated build script to not damage the control file
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Nov 2010 15:33:28 +0000 (15:33 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Nov 2010 15:33:28 +0000 (15:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20377 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/contrib/build-gosa

index 3118243a3b1a00502a36c0293dd798ab18c8d6dd..db888eac5a39769958704d1ce86c79f762b71288 100755 (executable)
@@ -86,12 +86,12 @@ def build(release, base_url, target="/tmp", method="svn", key_id=None, cleanup=T
 
             # Remove smarty3 package section
             out = ""
-            control = join(tmp_dir, "debian", "control")
+            control = join(target_dir, "debian", "control")
             data = open(control, 'r')
             remove = False
 
             for line in data:
-                line = line.strip()
+                line = line.rstrip()
                 if line == "Package: smarty3":
                     remove = True