#30 use dirname when creating ostree ref directories
Merged 4 years ago by abompard. Opened 4 years ago by dustymabe.
dustymabe/robosignatory dusty  into  master

file modified
+3 -3
@@ -49,10 +49,10 @@ 

              log.info('Previous commit for %s: %s'

                       % (ref, f.read().replace('\n', '')))

  

-     basename_refpath = os.path.basename(refpath)

-     if doref and not os.path.exists(basename_refpath):

+     dirname_refpath = os.path.dirname(refpath)

+     if doref and not os.path.exists(dirname_refpath):

          log.info("Creating the directories for the refpath")

-         os.makedirs(basename_refpath)

+         os.makedirs(dirname_refpath)

  

      if doref:

          log.info('Writing %s to %s' % (commitid, refpath))

We want the directory, not the base filename.

@kevin can we merge this since it's running in prod?

Pull-Request has been merged by abompard

4 years ago

merging since it's already running in prod.

nvm @abompard had already done that :)

Metadata