diff options
author | Erik Troan <ewt@redhat.com> | 2001-06-20 02:02:09 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-06-20 02:02:09 +0000 |
commit | 99da1533c688ec3be0af902d71943c41b8ac4f4f (patch) | |
tree | 7bf33b3459b600d8597487c7ee110051730c657c /utils | |
parent | 9a88d24a5a86e17e4b8586493975ec14b73cf15a (diff) | |
download | anaconda-99da1533c688ec3be0af902d71943c41b8ac4f4f.tar.gz anaconda-99da1533c688ec3be0af902d71943c41b8ac4f4f.tar.xz anaconda-99da1533c688ec3be0af902d71943c41b8ac4f4f.zip |
pkgorder doesn't give filenames anymore
Diffstat (limited to 'utils')
-rw-r--r-- | utils/genhdlist.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/utils/genhdlist.c b/utils/genhdlist.c index cf56a91f5..51e306d1d 100644 --- a/utils/genhdlist.c +++ b/utils/genhdlist.c @@ -443,17 +443,9 @@ int main(int argc, const char ** argv) { nalloced += 5; } - p = b + strlen(b); - i = 0; - /* trim off two '.' worth of data */ - while (p > b && i < 2) { - p--; - if (*p == '.') - i++; - } - *p = '\0'; - len = strlen(b); + /* chop */ + b[--len] = '\0'; depOrder[numpkgs] = malloc (len + 1); strcpy (depOrder[numpkgs], b); numpkgs++; |