Skip to content

Commit a4263d1

Browse files
authored
v08.03
1 parent 4bc8604 commit a4263d1

File tree

7 files changed

+23
-8
lines changed

7 files changed

+23
-8
lines changed

choco/ReadMe.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ With this program, you can easily create a repository on GitHub :octocat: with a
209209
- [2.0_2020-03-24](#20_2020-03-24)
210210
- [1.0_2020-03-24](#10_2020-03-24)
211211

212+
#### 08.03_2021-04-17
213+
- fixed a bug on ".github/workflows" folder scanning
214+
212215
#### 08.02_2021-04-17
213216
- On release push snap package as stable
214217

choco/createstructure.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
33
<metadata>
44
<id>createstructure</id>
5-
<version>08.02</version>
5+
<version>08.03</version>
66
<title>createstructure</title>
77
<authors>Castellani Davide</authors>
88
<projectUrl>https://github.com/createstructure/createstructure</projectUrl>

choco/tools/chocolateyinstall.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ if ($new_path -notlike "*$ppath*")
1616
$new_path += ";$ppath"
1717
$new_path = $new_path.Replace(";;", ";")
1818
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $new_path
19-
}
19+
}
20+
21+
# Install pypi library
22+
pip install createstructure

createstructure/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from os import system
1616

1717
__author__ = "help@castellanidavide.it"
18-
__version__ = "08.01 2021-04-15"
18+
__version__ = "08.03 2021-04-24"
1919

2020
class createstructure:
2121
def __init__ (self, token=None, organization_name="", IGNORE=[], verbose=False, template=False, answers=None):
@@ -238,17 +238,17 @@ def scan_and_elaborate(self, loc=""):
238238
contents = self.template.get_contents(f"{loc}")
239239
for content_file in sorted(contents, reverse=True, key=createstructure.name_of_path): # Put .folders at the end
240240
if not content_file.path in [".createstructure", ""] + self.IGNORE:
241-
if content_file.path == ".github/workflows": # Wait the end of others before do workflows
242-
start_waiting = dt.now().timestamp()
243-
while (active_count() != 2 and dt.now().timestamp() - start_waiting < 60): pass # Wait the end of processes or 60 seconds (a minute)
241+
if content_file.path == ".github/workflows": # Wait the end of all others before push workflows folder
242+
while active_count() != 2:
243+
pass
244244

245245
if content_file.type == "file":
246246
try:
247247
Thread(target = self.create_file, args = (self.change(content_file.path), self.change(self.g.get_repo(self.template_name).get_contents(content_file.path).decoded_content.decode()))).start()
248248
except: # If it's not a text file (eg. is an image)
249249
Thread(target = self.create_file, args = (self.change(content_file.path), self.g.get_repo(self.template_name).get_contents(content_file.path).decoded_content)).start()
250250
else:
251-
Thread(target = self.scan_and_elaborate, args = (content_file.path, )).start()
251+
Thread(target = self.scan_and_elaborate, args = (content_file.path, )).start()
252252

253253
def name_of_path(item):
254254
"""For sorting the folders, gives the path attributes

debian/debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
createstructure (08.03) focal; urgency=medium
2+
3+
* fixed a bug on ".github/workflows" folder scanning
4+
5+
-- Castellani Davide <help@castellanidavide.it> Sat, 24 Apr 2021 20:15:00 +1000
6+
17
createstructure (08.02) focal; urgency=medium
28

39
* On release push snap package as stable

docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ With this program, you can easily create a repository on GitHub :octocat: with a
209209
- [2.0_2020-03-24](#20_2020-03-24)
210210
- [1.0_2020-03-24](#10_2020-03-24)
211211

212+
#### 08.03_2021-04-17
213+
- fixed a bug on ".github/workflows" folder scanning
214+
212215
#### 08.02_2021-04-17
213216
- On release push snap package as stable
214217

snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: createstructure
2-
version: '08.02'
2+
version: '08.03'
33
summary: With this program, you can easily create a repository on GitHub.
44
description: |
55
With this program, you can easily create a repository on GitHub with a basic template, personalized for your use.

0 commit comments

Comments
 (0)