Basic debug info when fetching manifests.

This commit is contained in:
Celso Providelo 2015-02-02 14:00:24 -05:00
parent 560421a65f
commit e254cf3625

View File

@ -11,7 +11,10 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
from __future__ import print_function
import os
import time
import urllib
from consts import BINARIES
@ -42,6 +45,7 @@ class TouchManifest(object):
"pending/{}-preinstalled-touch-armhf.manifest".format(
distribution, series
)
print("I: [%s] - Fetching manifest from %s" % (time.asctime(), url))
response = urllib.urlopen(url)
# Only [re]create the manifest file if one was successfully downloaded
# this allows for an existing image to be used if the download fails.