File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4545 if [ -d ~/apt-cache/archives ]; then sudo mv ~/apt-cache/archives/* /var/cache/apt/archives/; fi
4646 rm -r ~/apt-cache
4747 fi
48+ touch ~/apt-cache-timestamp
4849
4950 - uses : actions/checkout@v4
5051 - uses : ruby/setup-ruby@v1
8788 run : |
8889 # TODO WIP (should only export new files)
8990 mkdir ~/apt-cache ~/apt-cache/lists ~/apt-cache/archives
90- sudo ln -t ~/apt-cache/lists /var/lib/ apt/lists/*
91- sudo ln -t ~/apt-cache/archives /var/ cache/apt/ archives/*.deb
91+ sudo find /var/lib/apt/lists/ -maxdepth 1 -type f -cnewer ~/apt-cache-timestamp -execdir ln -t ~/ apt-cache /lists/ {} +
92+ sudo find /var/cche/apt/archives/ -maxdepth 1 -type f -cnewer ~/apt-cache-timestamp -execdir ln -t ~/apt- cache/archives/ {} +
9293
9394 lint :
9495 runs-on : ubuntu-20.04
You can’t perform that action at this time.
0 commit comments