summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve code fomattingRadostin Stoyanov2017-06-072-27/+39
| | | | | Follow PEP8 using pycodestyle https://pypi.python.org/pypi/pycodestyle/
* File source fixesCédric Bosdonnat2017-04-141-3/+3
|
* Remove trailing slash after docker imageRadostin Stoyanov2017-04-141-3/+4
| | | | | Skopeo does not accept any trailing slash at the end of the url. See https://github.com/projectatomic/skopeo#copying-images.
* Fix error: `subprocess.CalledProcessError: CommandRadostin Stoyanov2017-04-141-1/+1
| | | | | | | | | | | | | | | | Fix the following failing skopeo call: 'skopeo copy docker://ubuntu:latest/ dir://tmp/tmpyFFP9Wvirt-bootstrap' The function `tempfile.mkdtemp()` returns full path and do not need additional slash at the beginning. Thus the destination path is incorrect. `dir://tmp/tmpyFFP9Wvirt-bootstrap` -----^ it should be: `dir:/tmp/tmpyFFP9Wvirt-bootstrap` -----^
* Handle error case when creating destination folderRadostin Stoyanov2017-04-141-1/+2
| | | | | | `OSError: [Errno 17] File exists: ...` error occurs when trying to create the destination directory specified from the user without checking if it already exists.
* Python 3/2 compatibility: gettext.install unicode flagRadostin Stoyanov2017-04-141-1/+0
| | | | | | | | The unicode flag is passed to `gettext.install` has default value `False` in Python2. [1] In Python3 this flag does not exists. [2] [1] https://docs.python.org/2/library/gettext.html#gettext.NullTranslations.install [2] https://docs.python.org/3.5/library/gettext.html#gettext.NullTranslations.install
* Python 3/2 compatibility: use print with bracketsRadostin Stoyanov2017-04-141-2/+1
| | | | | | | | The `print` function in Python3 is used with brackets.[1] This syntax is also accepted in Python2.[2] [1] https://docs.python.org/3.5/library/functions.html#print [2] https://docs.python.org/2.7/library/functions.html#print
* Python 3/2 compatibility: exceptions handlingRadostin Stoyanov2017-04-141-2/+2
| | | | | | | | Examine an exception during exception handling in Python3 is done with 'as' instead of comma. This approach works in Python2 as well. https://wiki.python.org/moin/HandlingExceptions
* Initial commitCédric Bosdonnat2017-03-075-0/+904