redguardtoo / elpa-mirror

Create local emacs package repository. 15 seconds to install 115 packages.
312 stars 54 forks source link

Support external packages outside the package-user-dir #45

Closed TxGVNN closed 1 year ago

TxGVNN commented 1 year ago

Thank you for a great package.

I'm planing to create ELPA archive from my GUIX configuration, so I hack a little bit to help this package can work well with external packages.

So I'd like to create PR from my workaround, I'm not sure this code will work on almost cases (I did not test BSD example yet).

Feel free to comment/improve to help it better. Regards!

redguardtoo commented 1 year ago

Thanks.

I did some minor change based on your code. Please test my latest code at your computer.

TxGVNN commented 1 year ago

Thanks for your improvement. After testing, I see an annoy bug not should appear. Removing old name: Permission denied Because files from GUIX packages has mode (d)r-xr-xr-x, and 'copy-directory keep mode from input.

I think we can ignore error instead of finding a way to resolve. Because we need by pass to generate archive-contents file

(ignore-errors
  (delete-directory tmp-dir t)))
redguardtoo commented 1 year ago

sure. 4ef6cc9 ignore delete-directory error (Chen Bin)