add --dl-cache flag for caching downloads
This adds '--dl-cache' flag to the importer.
If provided, that directory for the "workdir" of the source information.
That directory is where all the .dsc and source files are downloaded to.
If not provided, a temporary directory will be used.
Prior to this change, downloads would be made into the provided directory
(--directory). This represents a change, in 2 ways:
a.) that now by default the downloaded files will be removed on exit.
b.) the temporary files are downloaded to TMPDIR
This could be problematic since the downloaded files can be large.
If TMPDIR was a tmpfs or just had limited space, then we might
cause failure where the --directory argument would work.
To account for both of the above, it might be better to use --directory
argument as the default rather than tmpdir.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date: Wed Nov 2 13:32:30 2016 -0400
#
# On branch download-cache
# Your branch is ahead of 'origin/master' by 1 commit.
# (use "git push" to publish your local commits)
#
# Changes to be committed:
# modified: usd/SourceInformation.py
# modified: usd/importer.py
#
# Untracked files:
# apt/
# autofs5/
# curtin/
# gmp/
# msg
# my.diff
# myx.diff
# out
# out.diff
# save.diff
# tags
# usd-clone-use-proto.diff
# usd-clone.save
# usd/GitRepository.py.orig
# usd/SourceInformation.py.orig
# usd/SourceInformation.py.rej
# usd/__pycache__/
# usd/importer.py.orig
#