original_docstring: Build the publish dir with its package dir at the same time for atomicity
docstring: Build the publish dir with its package dir at the same time for atomicity
docstring_tokens: Build the publish dir with its package dir at the same time for atomicity
code: def make_publish_dirs_from_template(publish_dir, distro, arch, version,
                                      deb_publish_dir, deb_distro, deb_arch):
      "Build the publish dir with its package dir at the same time for atomicity"
      # We have to compute the time only once, because time is evolving! :-/
      # Just imagine this program run at midnight for example and the debug
      # joy we would have...
      time_once = time.gmtime()
      date = time.strftime("%Y-%m-%d", time_once)
      year = time.strftime("%Y", time_once)
      month = time.strftime("%m", time_once)
      # Substitute placeholders such as $DISTRO, $DATE, etc.
      return (string.Template(publish_dir).substitute(DISTRO = distro,
                                                      ARCH = arch,
                                                      YEAR = year,
                                                      MONTH = month,
                                                      DATE = date,
                                                      VERSION = version),
              string.Template(deb_publish_dir).substitute(DISTRO = distro,
                                                          ARCH = arch,
                                                          YEAR = year,
                                                          MONTH = month,
                                                          DATE = date,
                                                          VERSION = version))
code_tokens: def make_publish_dirs_from_template ( publish_dir , distro , arch , version , deb_publish_dir , deb_distro , deb_arch ) : time_once = time . gmtime ( ) date = time . strftime ( "%Y-%m-%d" , time_once ) year = time . strftime ( "%Y" , time_once ) month = time . strftime ( "%m" , time_once ) return ( string . Template ( publish_dir ) . substitute ( DISTRO = distro , ARCH = arch , YEAR = year , MONTH = month , DATE = date , VERSION = version ) , string . Template ( deb_publish_dir ) . substitute ( DISTRO = distro , ARCH = arch , YEAR = year , MONTH = month , DATE = date , VERSION = version ) )
short_docstring: Build the publish dir with its package dir at the same time for atomicity
short_docstring_tokens: Build the publish dir with its package dir at the same time for atomicity
comment: "Build the publish dir with its package dir at the same time for atomicity"$SEP$# We have to compute the time only once, because time is evolving! :-/$SEP$# Just imagine this program run at midnight for example and the debug$SEP$# joy we would have...$SEP$# Substitute placeholders such as $DISTRO, $DATE, etc.