clyde icon indicating copy to clipboard operation
clyde copied to clipboard

Clyde does not handle HTTP response codes

Open nogweii opened this issue 14 years ago • 3 comments

Tried downloading the package 'wondershaper', which depends on the package 'iproute'. When I tried to edit the PKGBUILD, vim's buffer was empty. Looking through, I checked /tmp/clyde/iproute/iproute.tar.gz and it is an HTML document rather than a gzipped tarball, with "404 Not Found" as the body.

Output:

:: wondershaper package not found, searching for group...                                              
:: wondershaper group not found, searching AUR...

==> Installing the following packages from AUR
Targets (2): wondershaper  iproute

==> Proceed with installation? [Y/n] y
==> Downloading iproute.tar.gz

bsdtar: Unrecognized archive format
bsdtar: Error exit delayed from previous errors.
    ( Unsupported package from AUR: Potentially dangerous! )
==> Edit the PKGBUILD (highly recommended for security reasons)? [Y/n] y
==> Edit the PKGBUILD (highly recommended for security reasons)? [Y/n] lua: /usr/share/lua/5.1/clydelib/util.lua:484: attempt to get length of local 'answer' (a nil value)
stack traceback:
    /usr/share/lua/5.1/clydelib/util.lua:484: in function 'question'
    /usr/share/lua/5.1/clydelib/util.lua:497: in function 'yesno'
    /usr/share/lua/5.1/clydelib/sync.lua:885: in function 'customizepkg'
    /usr/share/lua/5.1/clydelib/sync.lua:1184: in function </usr/share/lua/5.1/clydelib/sync.lua:1113>
    (tail call): ?
    /usr/share/lua/5.1/clydelib/sync.lua:1525: in function 'clyde_sync'
    /usr/share/lua/5.1/clydelib/sync.lua:1531: in function 'main'
    /usr/bin/clyde:1010: in function '?' 
    /usr/bin/clyde:1018: in function </usr/bin/clyde:929>
    (tail call): ?
    [C]: ?
/bin/su: invalid option -- 'S' 
Try `/bin/su --help' for more information.

(Note: The last two lines, about /bin/su, are not clyde's fault. I just included them for completedness.)

nogweii avatar Jun 04 '10 22:06 nogweii

I'm having the same issue (installing ubuntuone-client):

:: Retrieving packages from extra...
==> Downloading setuptools...
bsdtar: Unrecognized archive format
bsdtar: Error exit delayed from previous errors.
lua: bsdtar failed to extract /tmp/clyde-stianlik/setuptools/setuptools.src.tar.gz
stack traceback:
        [C]: in function 'error'
        /usr/share/lua/5.1/clydelib/aur.lua:312: in function 'download_extract'
        /usr/share/lua/5.1/clydelib/sync.lua:1063: in function </usr/share/lua/5.1/clydelib/sync.lua:998>
        (tail call): ?
        /usr/share/lua/5.1/clydelib/sync.lua:1520: in function 'clyde_sync'
        /usr/share/lua/5.1/clydelib/sync.lua:1526: in function </usr/share/lua/5.1/clydelib/sync.lua:1525>
        (tail call): ?
        /usr/bin/clyde:1122: in function 'main'
        /usr/bin/clyde:1182: in main chunk
        [C]: ?

cat /tmp/clyde-stianlik/setuptools/setuptools.src.tar.gz returns:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>

stianlik avatar Jul 20 '11 17:07 stianlik

Same.

10:17:52 dieter@ws ~ sudo clyde -S wxremind
Password: 
:: wxremind package not found, searching for group...
:: wxremind group not found, searching AUR...

==> Installing the following packages from AUR
Targets (2): wxremind  python-dateutil  

==> Proceed with installation? [Y/n] 
==> Downloading python-dateutil...
bsdtar: Unrecognized archive format
bsdtar: Error exit delayed from previous errors.
lua: bsdtar failed to extract /tmp/clyde-dieter/python-dateutil/python-dateutil.src.tar.gz
stack traceback:
    [C]: in function 'error'
    /usr/share/lua/5.1/clydelib/aur.lua:312: in function 'download_extract'
    /usr/share/lua/5.1/clydelib/sync.lua:1063: in function </usr/share/lua/5.1/clydelib/sync.lua:998>
    (tail call): ?
    /usr/share/lua/5.1/clydelib/sync.lua:1520: in function 'clyde_sync'
    /usr/share/lua/5.1/clydelib/sync.lua:1526: in function </usr/share/lua/5.1/clydelib/sync.lua:1525>
    (tail call): ?
    /usr/bin/clyde:1122: in function 'main'
    /usr/bin/clyde:1182: in main chunk
    [C]: ?
10:51:01 dieter@ws ~ cat /tmp/clyde-dieter/python-dateutil/python-dateutil.src.tar.gz
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>

Dieterbe avatar Jul 31 '11 08:07 Dieterbe

Interestingly, when I try getting the package manually with curl/wget, I get no response from the AUR server at all.

11:45:34 dieter@ws clyde master ? wget --tries=1 --server-response http://aur.archlinux.org:443/packages/python-dateutil/python-dateutil.tar.gz 
--2011-07-31 11:45:40--  http://aur.archlinux.org:443/packages/python-dateutil/python-dateutil.tar.gz
Resolving aur.archlinux.org... 208.92.232.29
Connecting to aur.archlinux.org|208.92.232.29|:443... connected.
HTTP request sent, awaiting response... No data received.
Giving up.
11:45:41 dieter@ws clyde master ? curl -I http://aur.archlinux.org:443/packages/python-dateutil/python-dateutil.tar.gz                                                                                                                                                            4 ↵
curl: (52) Empty reply from server

Dieterbe avatar Jul 31 '11 09:07 Dieterbe