ERL in corp app for fortage
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
347 B

  1. # -*-coding: UTF-8 -*-
  2. #!/usr/bin/env python3
  3. import os
  4. def scan():
  5. for address, dirs, d in os.walk('/usr/portage/'):
  6. for filename in d:
  7. if filename.endswith(".ebuild"):
  8. print( filename.replace(".ebuild", ""))
  9. #return filename.replace(".ebuild", "")
  10. if __name__ =='__main__':
  11. scan()