scratch.cc 605 B

1234567891011121314151617181920212223242526272829303132
  1. #include <apt-pkg/tagfile.h>
  2. #include <apt-pkg/strutl.h>
  3. #include <signal.h>
  4. #include <stdio.h>
  5. int main(int argc,char *argv[])
  6. {
  7. URI U(argv[1]);
  8. cout << U.Access << endl;
  9. cout << U.User << endl;
  10. cout << U.Password << endl;
  11. cout << U.Host << endl;
  12. cout << U.Path << endl;
  13. cout << U.Port << endl;
  14. /*
  15. FileFd F(argv[1],FileFd::ReadOnly);
  16. pkgTagFile Reader(F);
  17. pkgTagSection Sect;
  18. while (Reader.Step(Sect) == true)
  19. {
  20. Sect.FindS("Package");
  21. Sect.FindS("Section");
  22. Sect.FindS("Version");
  23. Sect.FindI("Size");
  24. };*/
  25. return 0;
  26. }