Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
  • Loading branch information
jgsogo and SpaceIm committed Mar 12, 2021
1 parent a2723df commit c614283
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions recipes/utf8.h/all/conanfile.py
@@ -1,5 +1,5 @@
import os
import re
import glob
from conans import ConanFile, tools


Expand All @@ -18,9 +18,7 @@ def _source_subfolder(self):

def source(self):
tools.get(**self.conan_data["sources"][self.version])
url = self.conan_data["sources"][self.version]['url']
m = re.match(r'.*/([0-9a-f]+)\.tar.gz', url)
extracted_dir = self.name + "-" + m[1]
extracted_dir = glob.glob("utf8.h-*")[0]
os.rename(extracted_dir, self._source_subfolder)

def package(self):
Expand Down

0 comments on commit c614283

Please sign in to comment.