Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. with open(manifest, "r") as f:
  2. manifests[dep] = manifest
  3. for l in f:
  4. l = l.strip()
  5. if l.endswith("/fixmepath"):
  6. fm.append(l)
  7. continue
  8. if l.endswith("/fixmepath.cmd"):
  9. continue
  10. dest = l.replace(stagingdir, "")
  11. dest = "/" + "/".join(dest.split("/")[3:])
  12. newmanifest[l] = targetdir + dest
  13.  
  14. # Check if files have already been installed by another
  15. # recipe and abort if they have, explaining what recipes are
  16. # conflicting.
  17. hashname = targetdir + dest
  18. if not hashname.endswith("/"):
  19. if hashname in fileset:
  20. bb.fatal("The file %s is installed by both %s and %s, aborting" % (dest, c, fileset[hashname]))
  21. else:
  22. fileset[hashname] = c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement