{"action":"created","issue":{"url":"https://api.github.com/repos/actionless/pikaur/issues/245","repository_url":"https://api.github.com/repos/actionless/pikaur","labels_url":"https://api.github.com/repos/actionless/pikaur/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/actionless/pikaur/issues/245/comments","events_url":"https://api.github.com/repos/actionless/pikaur/issues/245/events","html_url":"https://github.com/actionless/pikaur/issues/245","id":344566355,"node_id":"MDU6SXNzdWUzNDQ1NjYzNTU=","number":245,"title":"Exception when installing libc++abi with sudo","user":{"login":"lectrode","id":11493925,"node_id":"MDQ6VXNlcjExNDkzOTI1","avatar_url":"https://avatars1.githubusercontent.com/u/11493925?v=4","gravatar_id":"","url":"https://api.github.com/users/lectrode","html_url":"https://github.com/lectrode","followers_url":"https://api.github.com/users/lectrode/followers","following_url":"https://api.github.com/users/lectrode/following{/other_user}","gists_url":"https://api.github.com/users/lectrode/gists{/gist_id}","starred_url":"https://api.github.com/users/lectrode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lectrode/subscriptions","organizations_url":"https://api.github.com/users/lectrode/orgs","repos_url":"https://api.github.com/users/lectrode/repos","events_url":"https://api.github.com/users/lectrode/events{/privacy}","received_events_url":"https://api.github.com/users/lectrode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-25T18:57:22Z","updated_at":"2018-07-25T20:05:50Z","closed_at":null,"author_association":"NONE","body":"pikaur throws the following exception when installing libc++abi with sudo. Works as expected when sudo is omitted.\r\n\r\n```\r\n$ pikaur -Vq\r\nPikaur v1.2.3.r0.g6aeedb2\r\nPacman v5.1.0 - libalpm v11.0.0\r\n```\r\n\r\nOutput:\r\n```\r\n$ sudo pikaur -S --needed --noconfirm --mflags=\"--skippgpcheck,--nocheck\" libc++abi\r\nReading repository package databases...\r\nReading local package database...\r\nResolving AUR dependencies...\r\nlooking for conflicting AUR packages...\r\n:: Skipping review of PKGBUILD for libc++abi package (--noconfirm)\r\n\r\nRunning as unit: run-u3756.service\r\n/usr/bin/cp: target '/var/cache/pikaur/build/libc++/' is not a directory\r\nFinished with result: exit-code\r\nMain processes terminated with: code=exited/status=1\r\nService runtime: 25ms\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/pikaur\", line 9, in <module>\r\n    main()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/main.py\", line 342, in main\r\n    cli_entry_point()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/main.py\", line 253, in cli_entry_point\r\n    cli_install_packages()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/main.py\", line 120, in cli_install_packages\r\n    _run_install()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/main.py\", line 117, in _run_install\r\n    InstallPackagesCLI()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/install_cli.py\", line 171, in __init__\r\n    self.install_packages()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/install_cli.py\", line 760, in install_packages\r\n    self.build_packages()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/install_cli.py\", line 588, in build_packages\r\n    resolved_conflicts=self.resolved_conflicts\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/build.py\", line 633, in build\r\n    self.prepare_build_destination()\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/build.py\", line 422, in prepare_build_destination\r\n    copy_aur_repo(self.repo_path, self.build_dir)\r\n  File \"/usr/lib/python3.6/site-packages/pikaur/build.py\", line 62, in copy_aur_repo\r\n    raise Exception(_(f\"Can't copy '{from_path}' to '{to_path}'.\"))\r\nException: Can't copy '/var/cache/pikaur/aur_repos/libc++' to '/var/cache/pikaur/build/libc++/'.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/actionless/pikaur/issues/comments/407878323","html_url":"https://github.com/actionless/pikaur/issues/245#issuecomment-407878323","issue_url":"https://api.github.com/repos/actionless/pikaur/issues/245","id":407878323,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzg3ODMyMw==","user":{"login":"actionless","id":1655669,"node_id":"MDQ6VXNlcjE2NTU2Njk=","avatar_url":"https://avatars1.githubusercontent.com/u/1655669?v=4","gravatar_id":"","url":"https://api.github.com/users/actionless","html_url":"https://github.com/actionless","followers_url":"https://api.github.com/users/actionless/followers","following_url":"https://api.github.com/users/actionless/following{/other_user}","gists_url":"https://api.github.com/users/actionless/gists{/gist_id}","starred_url":"https://api.github.com/users/actionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actionless/subscriptions","organizations_url":"https://api.github.com/users/actionless/orgs","repos_url":"https://api.github.com/users/actionless/repos","events_url":"https://api.github.com/users/actionless/events{/privacy}","received_events_url":"https://api.github.com/users/actionless/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T20:05:50Z","updated_at":"2018-07-25T20:05:50Z","author_association":"OWNER","body":"is it working with sudo but other AUR packages?"}}
{"actor":{"display_login":"actionless"}}