Commit 2ef8754
committed
Fix package name encoding issues in apt_get_download
Replace direct `apt-get download` with curl approach to handle package names
containing special characters. The `apt-get download` command encodes special
characters in package names but doesn't decode them when saving files to disk,
causing filename issues. This change uses `apt-get --print-uris` to get the
download URL, then uses `curl -fLJO` to download with proper filename handling.
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>1 parent 6fe7592 commit 2ef8754
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
525 | 535 | | |
526 | 536 | | |
527 | | - | |
| 537 | + | |
528 | 538 | | |
529 | 539 | | |
530 | 540 | | |
| |||
0 commit comments