[Piuparts-devel] Bug#740386: More robust piuparts results reporting format

Dave Steele dsteele at gmail.com
Sat Mar 1 15:44:17 UTC 2014


On Sat, Mar 1, 2014 at 1:52 AM, Andreas Beckmann <anbe at debian.org> wrote:
> On 2014-02-28 22:57, Dave Steele wrote:
>> 3057fb6 piuparts-report.py: Establish PackagesDB prefix
>
> NACK. Or why is this needed for sources_db? This doesn't have logfiles.
>

Because PackagesDB always cares about log files.

$ pwd
/home/otheruser/
$ whoami
piupartsm
$ /usr/share/piuparts/piuparts-report
09:56:10 -------------------------------------------
09:56:10 Running section sid
09:56:10 Loading and parsing Packages file
09:56:10 Opening http://127.0.0.1/debian/dists/sid/main/binary-amd64/Packages.*
09:56:10 Fetching
http://127.0.0.1/debian/dists/sid/main/binary-amd64/Packages.gz
Traceback (most recent call last):
  File "/usr/share/piuparts/piuparts-report", line 1654, in <module>
    main()
  File "/usr/share/piuparts/piuparts-report", line 1625, in main
    section = Section(section_name, master_directory, doc_root,
packagedb_cache=packagedb_cache)
  File "/usr/share/piuparts/piuparts-report", line 734, in __init__
    self._source_db = piupartslib.packagesdb.PackagesDB()
  File "/usr/lib/python2.7/dist-packages/piupartslib/packagesdb.py",
line 313, in __init__
    self.create_subdirs()
  File "/usr/lib/python2.7/dist-packages/piupartslib/packagesdb.py",
line 345, in create_subdirs
    os.makedirs(sdir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'pass'

This is why there are turd log directories in piupartsm home, or
wherever else report is run.

-- 
"Le mieux est l'ennemi du bien" - Voltaire



More information about the Piuparts-devel mailing list