Package: dgit
Version: 11.5
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Recently I noticed that my usage of `dgit --gbp push-source' leaves
.git/dgit/unpack directories in each touched package directory. Which
in my case amounts to 1.5 GB below my pkg-perl directory (for more
than 1100 dgit-pushed packages since 2019).

My assumption is that `.git/dgit/unpack' is a temporary workspace
with no further relevance. To test this hypothesis, I now went to a
package's source dir, rm'd .git/dgit/unpack, imported the new
upstream release, and ran `dgit --gbp push-source' at the end. And I
didn't notice any unusual output. So I guess the assumption that
`.git/dgit/unpack' can and should be cleaned is not completely crazy.

A quick look at /usr/bin/dgit (quick as I didn't want to read 8000+
lines of code) shows e.g.:

  1877      $playground = fresh_playground 'dgit/unpack';
  2600      changedir $playground;
  2885      rmtree $playground;
  4768              changedir $playground;
  4834      changedir $playground;
  6199      changedir $playground;
  6250          changedir "$playground/work";
  6258          @git, qw(pull --ff-only -q), "$playground/work", qw(master);
  7450          changedir $playground;
  7634      changedir $playground;

i.e. lots of `changedir $playground' but only one `rmtree
$playground'. My _guess_ is that at least one more strategically
placed removal of this probably temporary directory would be called
for.

For the sake of disk space (and backup time -- where I first noticed
the issue), please take a look into this issue.


Cheers,
gregor


-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmVWj65fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgZ39A/+PCxSeDpMjt9xRtZiY26VGXv10Ss4SMtYzXn4imGdGzEvyUXFQeYrYC7f
nk4dBrB0+5PzE29RvJG6IV99VB+UeTtmiFQyBCTZX9TBvHo16l/5WssVkM3Gt7qa
OW1NoIxcuKAJ+HX/UCVaLSj7P4SUmewSIqY78EAdpOrfoPOvfxsjbG6/cIPdi7Vq
CjzpH890jsq5biKCtinaaDqzpZV/BnbQiaiYEq1vL6aLc5I6y/2kv/ZHfVx9ZDtk
7Kqv7/I34WLveJjnMd3lv/WSnChO8lT1Tx2y8fOoZ461YQ8q1h9g4N083QVx9LSF
itLgiVE6l7AiJ1qQJA4ji6+/DU7q+YlKQIWg78liIzOHcpUtIoYNTQN2vusIuu9E
VS3/clDWycZnnGYO1iN1lloRzI2OjJWMXrXRMtSsHgBJBmoBrizqgek1xXtiM4OI
rzr9rm/aHV5N4Y0uWgR+YLTjBrG+Ly9OXYiATsA49twaM+EtjR19MwVsoE8r4e6g
Jus8yXjlFdXwwe3Bp+W8uhT3QulX2tPu1C+ZMDm+9ZpYHKPbzEvSXMHff/BRWjTc
2rwysLkMmUUL8tE0BOUrUuytm9whsrTu+AVWLpbw4LO2ZLmjDMrN7XvM0GlA3BoJ
TOrUIhxEG0WMc7PpBOFskq4KWC42Dq8iEVPKqLCPaAoeVmd+CTo=
=Dzmz
-----END PGP SIGNATURE-----

Reply via email to