Guest User

Untitled

a guest
Oct 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. from __future__ import print_function
  4. from portage import cvstree
  5.  
  6. myentries = cvstree.getentries(mydir=".", recursive=1)
  7.  
  8. mynew = cvstree.findnew(entries=myentries, recursive=1)
  9. mychanged = cvstree.findchanged(entries=myentries, recursive=1)
  10. mymissing = cvstree.findmissing(entries=myentries, recursive=1)
  11. myunadded = cvstree.findunadded(entries=myentries, recursive=1)
  12. myremoved = cvstree.findremoved(entries=myentries, recursive=1)
  13.  
  14. for x in mynew:
  15. print('A ', x)
  16.  
  17. for x in mychanged:
  18. print('M ', x)
  19.  
  20. for x in mymissing:
  21. print('! ', x)
  22.  
  23. for x in myunadded:
  24. print('? ', x)
  25.  
  26. for x in myremoved:
  27. print('D ', x)
Add Comment
Please, Sign In to add comment