36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 91b94a33235e86adf7678cef4652551fccc251d1 Mon Sep 17 00:00:00 2001
|
|
From: Stanislav Ochotnicky <sochotnicky@redhat.com>
|
|
Date: Tue, 19 Nov 2013 10:28:03 +0100
|
|
Subject: [PATCH 1/2] Revert creating parent directories for pom.properties
|
|
|
|
Since we can't properly create directories let's just leave it up as default
|
|
permissions. At least it will not cause problems for various tooling
|
|
|
|
Fixes: rhbz#1031769
|
|
---
|
|
java-utils/maven_depmap.py | 8 --------
|
|
1 file changed, 8 deletions(-)
|
|
|
|
diff --git a/java-utils/maven_depmap.py b/java-utils/maven_depmap.py
|
|
index e15b5ff..13ff219 100644
|
|
--- a/java-utils/maven_depmap.py
|
|
+++ b/java-utils/maven_depmap.py
|
|
@@ -303,14 +303,6 @@ def append_if_missing(archive_name, file_name, file_contents):
|
|
archive = zipfile.ZipFile(archive_name, 'a')
|
|
try:
|
|
if file_name not in archive.namelist():
|
|
- path = os.path.dirname(file_name)
|
|
- while True:
|
|
- if not path:
|
|
- break
|
|
- subdir = path + os.path.sep
|
|
- if subdir not in archive.namelist():
|
|
- archive.writestr(subdir, '')
|
|
- path, tail = os.path.split(path)
|
|
archive.writestr(file_name, file_contents)
|
|
finally:
|
|
archive.close()
|
|
--
|
|
1.8.3.1
|
|
|